7#ifndef gbLAB_STATICID_H_
8#define gbLAB_STATICID_H_
25 template<
typename Derived>
71 throw std::runtime_error(
"StaticID error: YOU ARE TRYING TO SET THE COUNTER TO A LOWER VALUE THAN THE CURRENT ONE\n");
82 throw std::runtime_error(
"StaticID error: newIncrement MUST BE >=1\n");
95 template<
typename Derived>
98 template<
typename Derived>
101 template<
typename Derived>
A class template that implements a counter of the number of instances of Derived type that are create...
static void set_count(const size_t &newCount)
static size_t & get_count()
const size_t sID
The static ID of this.
static void set_increment(const size_t &newIncrement)
StaticID(const StaticID &)