Counts number of calls. More...
#include <functors.hpp>
Public Member Functions | |
| counting_functor_adaptor (Functor f, CounterType &cnt) | |
| Constructor. More... | |
| template<typename... Args> | |
| auto | operator() (Args &&...args) -> decltype(std::declval< Functor >()(std::forward< Args >(args)...)) |
| increments the counter and checks if the given limit is reached. More... | |
Counts number of calls.
| Functor | |
| CounterType |
Definition at line 276 of file functors.hpp.
|
inline |
|
inline |
increments the counter and checks if the given limit is reached.
| Args |
Definition at line 295 of file functors.hpp.
1.8.5