Go to the documentation of this file. 1 #ifndef EAGINE_TYPE_NAME_HPP
9 #define EAGINE_TYPE_NAME_HPP
11 #include "config/basic.hpp"
18 auto demangle_type_name(
const char*) noexcept -> std::string;
24 static inline auto type_name(
const T&) noexcept -> std::string {
25 return demangle_type_name(
typeid(T).name());
32 static inline auto type_name() noexcept -> std::
string {
33 return demangle_type_name(
typeid(T).name());
38 #if !EAGINE_LINK_LIBRARY || defined(EAGINE_IMPLEMENTING_LIBRARY)
39 #include <eagine/type_name.inl>
42 #endif // EAGINE_TYPE_NAME_HPP
Common code is placed in this namespace.
Definition: eagine.hpp:21
static auto type_name(const T &) noexcept -> std::string
Returns the demangled name for type T.
Definition: type_name.hpp:24