.TH "std::pointer_traits< _Ptr >" 3cxx "Sun Jan 8 2023" "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 = typename __difference< _Ptr >::type" .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 __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 &__e)" .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 .PP Definition at line \fB194\fP of file \fBmemory\fP\&. .SH "Member Typedef Documentation" .PP .SS "template using std::__ptr_traits_impl< _Ptr, _Elt >::difference_type = typename __difference<_Ptr>::type\fC [inherited]\fP" .PP The type used to represent the difference between two pointers\&. .PP Definition at line \fB175\fP of file \fBmemory\fP\&. .SS "template using std::__ptr_traits_impl< _Ptr, _Elt >::element_type = _Elt\fC [inherited]\fP" .PP The type pointed to\&. .PP Definition at line \fB172\fP of file \fBmemory\fP\&. .SS "template using std::__ptr_traits_impl< _Ptr, _Elt >::pointer = _Ptr\fC [inherited]\fP" .PP The pointer type\&. .PP Definition at line \fB169\fP of file \fBmemory\fP\&. .SS "template template using std::__ptr_traits_impl< _Ptr, _Elt >::rebind = typename __rebind<_Ptr, _Up>::type\fC [inherited]\fP" .PP A pointer to a different type\&. .PP Definition at line \fB179\fP of file \fBmemory\fP\&. .SH "Member Function Documentation" .PP .SS "template::value> static pointer std::__ptr_traits_ptr_to< _Ptr, _Elt, bool >::pointer_to (element_type & __e)\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(__e)\fP .RE .PP \fBPrecondition\fP .RS 4 \fCpointer::pointer_to(__e)\fP is a valid expression\&. .RE .PP .PP Definition at line \fB108\fP of file \fBmemory\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.