From 15895bf4058f71ef39fc4aaf729cb78954944e07 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Fri, 1 Mar 2024 16:53:14 +0000 Subject: [PATCH] Add example to reverse --- examples/src/reverse.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 examples/src/reverse.cpp diff --git a/examples/src/reverse.cpp b/examples/src/reverse.cpp new file mode 100644 index 0000000..ee78d29 --- /dev/null +++ b/examples/src/reverse.cpp @@ -0,0 +1,9 @@ +#include +#include + +auto main() -> int { + auto tuple = Reverse(utempl::Tuple{4, 3, 2, 1}); + ForEach(tuple, [](auto arg){ + std::cout << arg << std::endl; + }); +};