utempl/examples/src/times.cpp

11 lines
169 B
C++
Raw Normal View History

2024-03-01 16:59:45 +00:00
#include <utempl/utils.hpp>
#include <iostream>
auto main() -> int {
std::size_t i = 0;
utempl::Times<10>([&](){
++i;
std::cout << i << std::endl;
});
};