Loading...
Searching...
No Matches
Namespaces | Macros | Variables
typestring.h File Reference

produce stringview of type name of a type. Avoids using typeid for GCC, MSVC, and CLANG. For other compilers it will fall back to typeid.name() More...

#include <string_view>
#include <typeinfo>

Go to the source code of this file.

Namespaces

namespace  bbm
 

Macros

#define toTypestring(...)   bbm::typestring<decltype(__VA_ARGS__)>
 

Variables

template<typename T >
static constexpr std::string_view typestring = bbm::detail::typestring_impl<T>()
 

Detailed Description

produce stringview of type name of a type. Avoids using typeid for GCC, MSVC, and CLANG. For other compilers it will fall back to typeid.name()

Macro Definition Documentation

◆ toTypestring

#define toTypestring (   ...)    bbm::typestring<decltype(__VA_ARGS__)>