density
C++11 library for paged memory management, function queues, heterogeneous queues and lifo memory management
Public Types | List of all members
add_cv_qual< TYPE, CV > Struct Template Reference

#include <dynamic_reference.h>

Public Types

using type = TYPE
 

Detailed Description

template<typename TYPE, cv_qual CV>
struct density::add_cv_qual< TYPE, CV >

Adds to the first template argument the cv-qualification specified by the second template argument and defines a type member alias to it.

Note: the template type alias add_cv_qual_t is a short version for this type trait.

Example:

static_assert(std::is_same<add_cv_qual<int, cv_qual::no_qual>::type, int>::value, "");
static_assert(std::is_same<add_cv_qual<int *, cv_qual::const_qual>::type, int * const>::value, "");
static_assert(std::is_same<add_cv_qual<int &, cv_qual::const_qual>::type, int &>::value, "");
static_assert(std::is_same<add_cv_qual<const int, cv_qual::const_qual>::type, const int>::value, "");
static_assert(std::is_same<add_cv_qual<const int, cv_qual::volatile_qual>::type, const volatile int>::value, "");

The documentation for this struct was generated from the following file: