.TH "std::pointer_traits< _Ptr >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::pointer_traits< _Ptr > \- Uniform interface to all pointer-like types\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits std::__ptr_traits_impl< _Ptr, _Elt >\&. .SS "Public Types" .in +1c .ti -1c .RI "using \fBdifference_type\fP = __detected_or_t< ptrdiff_t, __diff_t, _Ptr >" .br .RI "The type used to represent the difference between two pointers\&. " .ti -1c .RI "using \fBelement_type\fP = _Elt" .br .RI "The type pointed to\&. " .ti -1c .RI "using \fBpointer\fP = _Ptr" .br .RI "The pointer type\&. " .ti -1c .RI "template using \fBrebind\fP = typename __detected_or_t< __replace_first_arg< _Ptr, _Up >, __rebind, _Ptr, _Up >::type" .br .RI "A pointer to a different type\&. " .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static pointer \fBpointer_to\fP (element_type &__r)" .br .RI "Obtain a pointer to an object\&. " .in -1c .SH "Detailed Description" .PP .SS "template .br struct std::pointer_traits< _Ptr >"Uniform interface to all pointer-like types\&. .PP \fBSince\fP .RS 4 C++11 .RE .PP .SH "Member Typedef Documentation" .PP .SS "template using std::__ptr_traits_impl< _Ptr, _Elt >::difference_type = __detected_or_t\fC [inherited]\fP" .PP The type used to represent the difference between two pointers\&. .SS "template using std::__ptr_traits_impl< _Ptr, _Elt >::element_type = _Elt\fC [inherited]\fP" .PP The type pointed to\&. .SS "template using std::__ptr_traits_impl< _Ptr, _Elt >::pointer = _Ptr\fC [inherited]\fP" .PP The pointer type\&. .SS "template template using std::__ptr_traits_impl< _Ptr, _Elt >::rebind = typename __detected_or_t<__replace_first_arg<_Ptr, _Up>, __rebind, _Ptr, _Up>::type\fC [inherited]\fP" .PP A pointer to a different type\&. .SH "Member Function Documentation" .PP .SS "template::value> static pointer std::__ptr_traits_ptr_to< _Ptr, _Elt, bool >::pointer_to (element_type & __r)\fC [inline]\fP, \fC [static]\fP, \fC [inherited]\fP" .PP Obtain a pointer to an object\&. .PP \fBParameters\fP .RS 4 \fI__r\fP A reference to an object of type \fCelement_type\fP .RE .PP \fBReturns\fP .RS 4 \fCpointer::pointer_to(__r)\fP .RE .PP \fBPrecondition\fP .RS 4 \fCpointer::pointer_to(__r)\fP is a valid expression\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.