Add example to reverse

This commit is contained in:
sha512sum 2024-03-01 16:53:14 +00:00
parent f07d63bd67
commit 15895bf405

9
examples/src/reverse.cpp Normal file
View 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;
});
};