logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::pointer_traits< _Ptr > - Uniform interface to all pointer-like types.

Author

       Generated automatically by Doxygen for libstdc++ from the source code.

                                                    libstdc++                  std::pointer_traits<_Ptr>(3cxx)

Detailed Description

template<typename_Ptr>
       struct std::pointer_traits< _Ptr >"Uniform interface to all pointer-like types.

       Since
           C++11

Member Function Documentation

template<typename_Ptr,typename_Elt,bool=is_void<_Elt>::value>staticpointerstd::__ptr_traits_ptr_to<_Ptr,_Elt,bool>::pointer_to(element_type&__r)[inline],[static],[inherited]
       Obtain a pointer to an object.

       Parameters__r A reference to an object of type element_type

       Returns
           pointer::pointer_to(__r)

       Precondition
           pointer::pointer_to(__r) is a valid expression.

Member Typedef Documentation

template<typename_Ptr,typename_Elt>usingstd::__ptr_traits_impl<_Ptr,_Elt>::difference_type=__detected_or_t<ptrdiff_t,__diff_t,_Ptr>[inherited]
       The type used to represent the difference between two pointers.

   template<typename_Ptr,typename_Elt>usingstd::__ptr_traits_impl<_Ptr,_Elt>::element_type=_Elt[inherited]
       The type pointed to.

   template<typename_Ptr,typename_Elt>usingstd::__ptr_traits_impl<_Ptr,_Elt>::pointer=_Ptr[inherited]
       The pointer type.

   template<typename_Ptr,typename_Elt>template<typename_Up>usingstd::__ptr_traits_impl<_Ptr,_Elt>::rebind=typename__detected_or_t<__replace_first_arg<_Ptr,_Up>,__rebind,_Ptr,_Up>::type[inherited]
       A pointer to a different type.

Name

       std::pointer_traits< _Ptr > - Uniform interface to all pointer-like types.

Synopsis

       #include <memory>

       Inherits std::__ptr_traits_impl< _Ptr, _Elt >.

   PublicTypesusingdifference_type = __detected_or_t< ptrdiff_t, __diff_t, _Ptr >
           The type used to represent the difference between two pointers.
       usingelement_type = _Elt
           The type pointed to.
       usingpointer = _Ptr
           The pointer type.
       template<typename _Up > usingrebind = typename__detected_or_t< __replace_first_arg< _Ptr, _Up >,
           __rebind, _Ptr, _Up >::type
           A pointer to a different type.

   StaticPublicMemberFunctionsstatic pointer pointer_to (element_type &__r)
           Obtain a pointer to an object.

See Also