Add times example

This commit is contained in:
sha512sum 2024-03-01 16:59:45 +00:00
parent 15895bf405
commit e32c9f22f2

10
examples/src/times.cpp Normal file
View file

@ -0,0 +1,10 @@
#include <utempl/utils.hpp>
#include <iostream>
auto main() -> int {
std::size_t i = 0;
utempl::Times<10>([&](){
++i;
std::cout << i << std::endl;
});
};