Add example to reverse
This commit is contained in:
parent
f07d63bd67
commit
15895bf405
1 changed files with 9 additions and 0 deletions
9
examples/src/reverse.cpp
Normal file
9
examples/src/reverse.cpp
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include <utempl/utils.hpp>
|
||||
#include <iostream>
|
||||
|
||||
auto main() -> int {
|
||||
auto tuple = Reverse(utempl::Tuple{4, 3, 2, 1});
|
||||
ForEach(tuple, [](auto arg){
|
||||
std::cout << arg << std::endl;
|
||||
});
|
||||
};
|
Loading…
Reference in a new issue