UniRec 3.3.2
|
Provides a set of type traits and aliases for working with unirec++. More...
#include <string>
#include <string_view>
#include <type_traits>
Go to the source code of this file.
Data Structures | |
struct | Nemea::is_string< T > |
A type trait that checks if a given type is a string type. More... | |
struct | Nemea::is_string< std::string > |
struct | Nemea::is_string< std::string_view > |
struct | Nemea::add_const< T > |
A type trait that adds const to a given type if it is a pointer or a reference. More... | |
struct | Nemea::add_const< T * > |
struct | Nemea::add_const< T & > |
Namespaces | |
namespace | Nemea |
Typedefs | |
template<typename T > | |
using | Nemea::add_const_t = typename add_const< T >::type |
Variables | |
template<typename T > | |
constexpr bool | Nemea::is_string_v = is_string<T>::value |
Provides a set of type traits and aliases for working with unirec++.
SPDX-License-Identifier: BSD-3-Clause
Definition in file unirecTypeTraits.hpp.
struct Nemea::add_const |
A type trait that adds const
to a given type if it is a pointer or a reference.
If the input type T
is not a pointer or a reference, add_const<T>
is equivalent to T
. Otherwise, add_const<T>
adds const
to the pointed-to or referred-to type.
T | The input type to add const to. |
Definition at line 45 of file unirecTypeTraits.hpp.
Data Fields | ||
---|---|---|
typedef T | type |
struct Nemea::add_const< T * > |
Definition at line 50 of file unirecTypeTraits.hpp.
Data Fields | ||
---|---|---|
typedef const T * | type |
struct Nemea::add_const< T & > |
Definition at line 55 of file unirecTypeTraits.hpp.
Data Fields | ||
---|---|---|
typedef const T & | type |