OGLplus  (0.59.0) a C++ wrapper for rendering APIs

Class counting invocation of its call operator. More...

#include <eagine/count.hpp>

Public Types

using value_type = Int
 The value type alias.
 

Public Member Functions

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...
 

Detailed Description

template<typename Int = int>
class eagine::count_t< Int >

Class counting invocation of its call operator.

Member Function Documentation

◆ operator value_type()

template<typename Int = int>
constexpr eagine::count_t< Int >::operator value_type ( ) const
inlineconstexprnoexcept

Implicit conversion to value type, returns counter value.

See also
value

◆ operator()()

template<typename Int = int>
template<typename... P>
constexpr void eagine::count_t< Int >::operator() ( const P &  ...)
inlineconstexprnoexcept

Call operator incrementing the counter state.

See also
value

The documentation for this class was generated from the following file:

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).