From e32c9f22f28795d1db2ceb58de28044bcfa2796f Mon Sep 17 00:00:00 2001 From: sha512sum Date: Fri, 1 Mar 2024 16:59:45 +0000 Subject: [PATCH] Add times example --- examples/src/times.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 examples/src/times.cpp diff --git a/examples/src/times.cpp b/examples/src/times.cpp new file mode 100644 index 0000000..57254a0 --- /dev/null +++ b/examples/src/times.cpp @@ -0,0 +1,10 @@ +#include +#include + +auto main() -> int { + std::size_t i = 0; + utempl::Times<10>([&](){ + ++i; + std::cout << i << std::endl; + }); +};