std::add_pointer

From cppreference.com
Jump to: navigation, search
Defined in header <type_traits>
template< class T >
struct add_pointer;
(since C++11)

Provides the member typedef type which is the type T*. If T is a reference type, then type is a pointer to the referred type.

Contents

[edit] Member types

Name Definition
type pointer to T or to the type referenced by T

[edit] Possible implementation

[edit] Example

[edit] See also

checks if a type is a pointer type
(class template) [edit]
removes pointer from the given type
(class template) [edit]

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox