rs-core

Core utilities


Project maintained by CaptainCrowbar Hosted on GitHub Pages — Theme by mattgraham

Type Names

Core utility library by Ross Smith

#include "rs-core/typename.hpp"
namespace RS;

Contents

Type names

This header provides human readable type names on compilers that don’t supply those by default (Clang and GCC). It’s in a separate header because it needs to import the <cxxabi.h> header.

template <typename T> std::string type_name();

Returns the name of the type T.

template <typename T> std::string type_name(T&& t);

Returns the name of the dynamic type of the argument.