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

__gnu_cxx::_Relative_pointer_impl.3cxx

Author

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

                                                    libstdc++     __gnu_cxx::_Relative_pointer_impl<_Tp>(3cxx)

Detailed Description

template<typename_Tp>
       class __gnu_cxx::_Relative_pointer_impl< _Tp >"A storage policy for use with _Pointer_adapter<> which
       stores the pointer's address as an offset value which is relative to its own address.

       This is intended for pointers within shared memory regions which might be mapped at different addresses
       by different processes. For null pointers, a value of 1 is used. (0 is legitimate sometimes for nodes in
       circularly linked lists) This value was chosen as the least likely to generate an incorrect null, As
       there is no reason why any normal pointer would point 1 byte into its own pointer address.

Name

       __gnu_cxx::_Relative_pointer_impl< _Tp > - A storage policy for use with _Pointer_adapter<> which stores
       the pointer's address as an offset value which is relative to its own address.

Synopsis

       #include <pointer.h>

   PublicTypes
       typedef _Tp element_typePublicMemberFunctions
       _Tp * get () const
       bool operator< (const _Relative_pointer_impl &__rarg) const
       bool operator== (const _Relative_pointer_impl &__rarg) const
       void set (_Tp *__arg)

See Also