Template Class Registry::Add

Template Class Registry::Add#

Nested Relationships#

This class is a nested type of Template Class Registry.

Class Documentation#

template<typename V>
class Add#

A static registration template. Use like such:

X(“fancy-gc”, “Newfangled garbage collector.”);

Use of this template requires that:

  1. The registered subclass has a default constructor.

The registry entry type has a constructor compatible with this signature:

entry(const char *Name, const char *ShortDesc, T *(*Ctor)());

If you have more elaborate requirements, then copy and modify.

Public Functions

inline Add(const char *Name, const char *Desc)#