Provides a counter that observes the size of a table. More...
#include <daemon/common/counter.hpp>
Public Types | |
using | rep = size_t |
Public Member Functions | |
constexpr | SizeCounter (const T *table=nullptr) noexcept |
void | observe (const T *table) noexcept |
operator rep () const | |
Return the counter's value, i.e., the current size of the table being observed. More... | |
Provides a counter that observes the size of a table.
T | a type that provides a size() const member function |
If the table is not specified in the constructor, it can be added later by calling observe().
Definition at line 110 of file counter.hpp.
using nfd::SizeCounter< T >::rep = size_t |
Definition at line 113 of file counter.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 116 of file counter.hpp.
|
inlinenoexcept |
Definition at line 122 of file counter.hpp.
|
inline |
Return the counter's value, i.e., the current size of the table being observed.
Definition at line 130 of file counter.hpp.