A C++ template library for embedded applications
MIT licensed
Designed and
maintained by
John Wellbelove
Support the development
of the ETL


Inherit from this class to count instances of a class.

Note: This class is not thread safe.


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>