provides a counter that observes the size of a table More...
#include <counter.hpp>
Public Types | |
typedef size_t | Rep |
Public Member Functions | |
constexpr | SizeCounter (const T *table=nullptr) |
SizeCounter (const SizeCounter &)=delete | |
SizeCounter & | operator= (const SizeCounter &)=delete |
void | observe (const T *table) |
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 114 of file counter.hpp.
typedef size_t nfd::SizeCounter< T >::Rep |
Definition at line 117 of file counter.hpp.
|
inlineexplicit |
Definition at line 120 of file counter.hpp.
|
delete |
|
delete |
|
inline |
Definition at line 131 of file counter.hpp.
|
inline |
observe the counter
Definition at line 138 of file counter.hpp.