Skip to content

File demangle.h

File List > common > demangle.h

Go to the documentation of this file

#pragma once
#include <uipc/common/dllexport.h>
#include <typeinfo>
#include <string>

namespace uipc
{
UIPC_CORE_API std::string demangle(const std::string& mangled_name);

template <typename T>
inline std::string demangle() noexcept
{
    return demangle(typeid(T).name());
}
}  // namespace uipc