Class reflectable
Defined in File reflectable.hpp
Class Documentation
-
class reflectable
Interface for classes wishing to employ pseudo-reflection in C++.
Public Functions
-
virtual ~reflectable(void) = default
-
virtual std::type_index type_index(void) const = 0
Return the std::type_index of the derived class. This is useful in conjunction with std::variant and std::visit, as it allows for run-time reflection based on the actual type of the derived class.
-
virtual ~reflectable(void) = default