UniRec  3.3.2
Data Structures | Namespaces | Typedefs | Variables
unirecTypeTraits.hpp File Reference

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

 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
 

Detailed Description

Provides a set of type traits and aliases for working with unirec++.

Author
Pavel Siska siska.nosp@m.@ces.nosp@m.net.c.nosp@m.z

SPDX-License-Identifier: BSD-3-Clause

Definition in file unirecTypeTraits.hpp.


Data Structure Documentation

◆ Nemea::add_const

struct Nemea::add_const

template<typename T>
struct Nemea::add_const< T >

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.

Template Parameters
TThe input type to add const to.

Definition at line 45 of file unirecTypeTraits.hpp.

Data Fields
typedef T type

◆ Nemea::add_const< T * >

struct Nemea::add_const< T * >

template<typename T>
struct Nemea::add_const< T * >

Definition at line 50 of file unirecTypeTraits.hpp.

Data Fields
typedef const T * type

◆ Nemea::add_const< T & >

struct Nemea::add_const< T & >

template<typename T>
struct Nemea::add_const< T & >

Definition at line 55 of file unirecTypeTraits.hpp.

Data Fields
typedef const T & type