2021-12-05 17:54:36 +00:00
|
|
|
#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());
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|