tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
add_pointer< T > Struct Template Reference

If T is a reference type, then provides the member typedef type which is a pointer to the referred type. Otherwise, if T names an object type, a function type that is not cv- or ref-qualified, or a (possibly cv-qualified) void type, provides the member typedef type which is the type T*. Otherwise (if T is a cv- or ref-qualified function type), provides the member typedef type which is the type T. The behavior of a program that adds specializations for add_pointer is undefined. More...

#include <etl/type_traits.hpp>

Related Symbols

(Note that these are not member symbols.)

template<typename T>
using add_pointer_t = typename add_pointer<T>::type
 

Detailed Description

template<typename T>
struct etl::add_pointer< T >

If T is a reference type, then provides the member typedef type which is a pointer to the referred type. Otherwise, if T names an object type, a function type that is not cv- or ref-qualified, or a (possibly cv-qualified) void type, provides the member typedef type which is the type T*. Otherwise (if T is a cv- or ref-qualified function type), provides the member typedef type which is the type T. The behavior of a program that adds specializations for add_pointer is undefined.

Friends And Related Symbol Documentation

◆ add_pointer_t

template<typename T>
template<typename T>
using add_pointer_t = typename add_pointer<T>::type
related

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