Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
std::pointer_traits< T > Class Template Reference

provides a uniform interface to pointer-like types More...

Inheritance diagram for std::pointer_traits< T >:
Inheritance graph

Detailed Description

template<class T>
class std::pointer_traits< T >

provides a uniform interface to pointer-like types

Template Parameters
Tpointer type to retrieve properties for

pointer_traits provides a uniform interface to retrieve properties of pointers and other types that behave like pointers. This template can be specialized for user-defined pointer-like types so that the information about the pointer can be retrieved even if type does not provide the usual typedefs.

Note
this implementation includes the C++23 implementation change to make the traits SFINAE-friendly for the case where element_type is not defined.
See also
https://cplusplus.github.io/LWG/issue3545

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