Provides a counter that observes the size of a table. More...
#include <daemon/common/counter.hpp>
Public Types | |
typedef size_t | Rep |
Public Member Functions | |
constexpr | SizeCounter (const T *table=nullptr) noexcept |
void | observe (const T *table) noexcept |
operator Rep () const | |
Observe the counter. More... | |
Provides a counter that observes the size of a table.
T | a type that provides a size() const member function |
if table not specified in constructor, it can be added later by invoking observe()
Definition at line 106 of file counter.hpp.
typedef size_t nfd::SizeCounter< T >::Rep |
Definition at line 109 of file counter.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 112 of file counter.hpp.
|
inlinenoexcept |
Definition at line 118 of file counter.hpp.
|
inline |
Observe the counter.
Definition at line 125 of file counter.hpp.