__GNU_CXX::_RELATIVE_POINTER_IMPL(3cxx)

๐ŸŒธ NAME ๐ŸŒธ

okay so bestie, welcome to the man page for __gnu_cxx::_Relative_pointer_impl< _Tp > โ€” manual section 3cxx, no cap. Itโ€™s 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 โœจ

the include is giving one line and one line only:

#include <pointer.h>

๐Ÿ’– Public Types ๐Ÿ’–

  • typedef _Tp element_type โ€” yup, thatโ€™s the public type, exactly as written. ๐ŸŽ€

๐Ÿซถ Public Member Functions ๐Ÿซถ

  • _Tp * get () const โ€” the getter signature, untouched and iconic. โœจ
  • bool operator< (const _Relative_pointer_impl &__rarg) const โ€” the less-than operator signature, exactly as listed. ๐Ÿ’œ
  • bool operator== (const _Relative_pointer_impl &__rarg) const โ€” the equality operator signature, exactly as listed. ๐Ÿฆ‹
  • void set (_Tp *__arg) โ€” the setter signature, exactly as listed. ๐ŸŒธ

๐Ÿฆ‹ Detailed Description ๐Ÿฆ‹

template<typename _Tp> โ€” class __gnu_cxx::_Relative_pointer_impl< _Tp >. periodt. ๐Ÿ‘‘

okay so hereโ€™s the actual vibe: itโ€™s 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. Itโ€™s lowkey built for shared-memory situations. ๐Ÿซถ

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. And yes, 0 is legitimate sometimes for nodes in circularly linked lists. (Not me remembering that detail, but okay.) 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. fr fr ๐Ÿ’€

๐Ÿ’œ Author ๐Ÿ’œ

The author line says: Generated automatically by Doxygen for libstdc++ from the source code. iconic. ๐ŸŽ€


okay bestie, thatโ€™s the whole page! ๐Ÿซถ The original footerโ€™s source/version and date stamp is libst__gnu_cxx::_Rel...ter_impl< _Tp >(3cxx), so thatโ€™s the cute sign-off instead of a copied footer. bye! ๐Ÿ’–