A C++ template library for embedded applications
Designed and maintained by
Aster Consulting Ltd

instance_count

Inherit from this class to count instances of a class.

Note: This class is not thread safe.

Example

Instances of My_Class will be counted and can be accessed by the inherited member function get_instance_count().

class My_Class : public etl::instance_count<My_Class>
{
};
instance_count.h