.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 "\fBusing\fP \fBdifference_type\fP = \fB__detected_or_t\fP< ptrdiff_t, __diff_t, _Ptr >" .br .RI "The type used to represent the difference between two pointers\&. " .ti -1c .RI "\fBusing\fP \fBelement_type\fP = \fB_Elt\fP" .br .RI "The type pointed to\&. " .ti -1c .RI "\fBusing\fP \fBpointer\fP = _Ptr" .br .RI "The pointer type\&. " .ti -1c .RI "template<\fBtypename\fP _Up > \fBusing\fP \fBrebind\fP = \fBtypename\fP \fB__detected_or_t\fP< \fB__replace_first_arg\fP< _Ptr, _Up >, \fB__rebind\fP, _Ptr, _Up >::type" .br .RI "A pointer to a different type\&. " .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "\fBstatic\fP pointer \fBpointer_to\fP (\fBelement_type\fP &__r)" .br .RI "Obtain a pointer to an object\&. " .in -1c .SH "Detailed Description" .PP .SS "template<\fBtypename\fP _Ptr> .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<\fBtypename\fP _Ptr , \fBtypename\fP \fB_Elt\fP > \fBusing\fP std::__ptr_traits_impl< _Ptr, \fB_Elt\fP >::difference_type = \fB__detected_or_t\fP\fC [inherited]\fP" .PP The type used to represent the difference between two pointers\&. .SS "template<\fBtypename\fP _Ptr , \fBtypename\fP \fB_Elt\fP > \fBusing\fP std::__ptr_traits_impl< _Ptr, \fB_Elt\fP >::element_type = \fB_Elt\fP\fC [inherited]\fP" .PP The type pointed to\&. .SS "template<\fBtypename\fP _Ptr , \fBtypename\fP \fB_Elt\fP > \fBusing\fP std::__ptr_traits_impl< _Ptr, \fB_Elt\fP >::pointer = _Ptr\fC [inherited]\fP" .PP The pointer type\&. .SS "template<\fBtypename\fP _Ptr , \fBtypename\fP \fB_Elt\fP > template<\fBtypename\fP _Up > \fBusing\fP std::__ptr_traits_impl< _Ptr, \fB_Elt\fP >::rebind = \fBtypename\fP \fB__detected_or_t\fP<\fB__replace_first_arg\fP<_Ptr, _Up>, \fB__rebind\fP, _Ptr, _Up>::type\fC [inherited]\fP" .PP A pointer to a different type\&. .SH "Member Function Documentation" .PP .SS "template<\fBtypename\fP _Ptr , \fBtypename\fP \fB_Elt\fP , bool = is_void<_Elt>::value> \fBstatic\fP pointer std::__ptr_traits_ptr_to< _Ptr, \fB_Elt\fP, bool >::pointer_to (\fBelement_type\fP & __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\&.