Class counting invocation of its call operator.
More...
#include <eagine/count.hpp>
|
|
constexpr | count_t () noexcept=default |
| | Default construction, initializes counter to zero.
|
| |
|
constexpr value_type | value () const noexcept |
| | Returns the current value on the counter.
|
| |
| constexpr | operator value_type () const noexcept |
| | Implicit conversion to value type, returns counter value. More...
|
| |
| template<typename... P> |
| constexpr void | operator() (const P &...) noexcept |
| | Call operator incrementing the counter state. More...
|
| |
template<typename Int = int>
class eagine::count_t< Int >
Class counting invocation of its call operator.
◆ operator value_type()
template<typename Int = int>
Implicit conversion to value type, returns counter value.
- See also
- value
◆ operator()()
template<typename Int = int>
template<typename... P>
Call operator incrementing the counter state.
- See also
- value
The documentation for this class was generated from the following file: