Classes | |
| struct | tts::cartesian_product< L1, L2 > |
| Generate the Cartesian product of two type lists. More... | |
| struct | tts::filter< Pred, Type > |
| Filter a types list by a predicate. More... | |
| struct | tts::type< T > |
| Encapsulates a single type into a reusable type object. More... | |
| struct | tts::types< Ts > |
| Encapsulates a variadic list of types into a reusable object. More... | |
Typedefs | |
| using | tts::arithmetic_types = types< double, float, std::int64_t, std::int32_t, std::int16_t, std::int8_t, std::uint64_t, std::uint32_t, std::uint16_t, std::uint8_t > |
| Types list containing all standard arithmetic types. | |
| using | tts::int_types = types< std::int64_t, std::int32_t, std::int16_t, std::int8_t > |
| Types list containing all standard signed integer types. | |
| using | tts::integral_types = types< std::int64_t, std::int32_t, std::int16_t, std::int8_t, std::uint64_t, std::uint32_t, std::uint16_t, std::uint8_t > |
| Types list containing all standard integer types. | |
| using | tts::real_types = types< double, float > |
| Types list containing all standard floating point types. | |
| using | tts::signed_types = types< double, float, std::int64_t, std::int32_t, std::int16_t, std::int8_t > |
| Types list containing all standard signed types. | |
| using | tts::uint_types = types< std::uint64_t, std::uint32_t, std::uint16_t, std::uint8_t > |
| Types list containing all standard unsigned types. | |
Functions | |
| template<typename T > | |
| constexpr auto | tts::name (T const &t) |
Returns the name of the type T in readable form. | |
Variables | |
| template<typename T > | |
| auto constexpr | tts::typename_ = _::typename_impl<T> {} |
Evaluates to an object containing the name of the type T in readable form. | |
|
constexpr |
#include <tts/tools/typename.hpp>
Returns the name of the type T in readable form.
This function is a convenience wrapper around typename_.
| t | Value to retrieve the type name for. |
typename_ instance representing the name of T as a string-like object.
|
inlineconstexpr |
#include <tts/tools/typename.hpp>
Evaluates to an object containing the name of the type T in readable form.
typename_<T> is a constexpr object that can be used to retrieve the name of a type T as a text-like object. It can be used in conjunction with as_text or stream output operators to display type names.
| T | Type to query. |