mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@11683 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2cbb01d375
commit
0e1a0ce9d6
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ CONSOLE_APP_MAIN
|
|||
Sort(SortedRange(MakeIota(10)));
|
||||
|
||||
// Testing const argument
|
||||
auto h = MakeIota(10);
|
||||
auto h = MakeIota(20);
|
||||
const auto& x = h;
|
||||
|
||||
DUMP(SubRange(x, 1, 4));
|
||||
|
|
@ -24,4 +24,5 @@ CONSOLE_APP_MAIN
|
|||
DUMP(ViewRange(x, MakeIota(3)));
|
||||
DUMP(FilterRange(x, [=](int x) { return x > 4; }));
|
||||
DUMP(SortedRange(x));
|
||||
DUMP(FilterRange(ReverseRange(SortedRange(x)), [] (int x) { return x & 1; }));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue