utempl/examples/src/reverse.cpp

10 lines
196 B
C++
Raw Normal View History

2024-03-01 16:53:14 +00:00
#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;
});
};