Add times example
This commit is contained in:
parent
15895bf405
commit
e32c9f22f2
1 changed files with 10 additions and 0 deletions
10
examples/src/times.cpp
Normal file
10
examples/src/times.cpp
Normal 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;
|
||||
});
|
||||
};
|
Loading…
Reference in a new issue