DarkflameServer/dCommon/Type.h

13 lines
183 B
C
Raw Normal View History

#pragma once
#include <string>
#include <typeinfo>
std::string demangle(const char* name);
template <class T>
std::string type(const T& t) {
2022-07-28 13:39:57 +00:00
return demangle(typeid(t).name());
}