17 #ifndef CPP_MATE_GENERIC_BASE_HPP
18 #define CPP_MATE_GENERIC_BASE_HPP
40 template<
typename T>
inline bool isInstance()
const {
return typeid(*this) ==
typeid(T); }
The base class of some generics which type required to be detected in runtime.
Definition: GenericBase.hpp:28
virtual ~GenericBase()=default
bool isInstance() const
Checks that the instance of the specified type.
Definition: GenericBase.hpp:40
Definition: BinaryData.hpp:28