Template Function c4::eoffs_cls

Function Documentation

template<class Enum>
size_t c4::eoffs_cls()

return the offset for an enum symbol class. For example, eoffs_cls<MyEnumClass>() would be 13=strlen(“MyEnumClass::”).

With this function you can announce that the full prefix (including an eventual enclosing class or C++11 enum class) is of a certain length.

Warning

Needs to be specialized for each enum class type that wants to use this. When no specialization is given, will return 0.