__GNU_CXX::_STD_POINTER_IMPL(3cxx)

🌸 NAME 🌸

__gnu_cxx::_Std_pointer_impl< _Tp > β€” bestie, this is a storage policy you plug into _Pointer_adapter<> and it literally hands you back a standard pointer. That's the whole vibe. ✨


πŸ’… SYNOPSIS

#include <pointer.h>

πŸŽ€ Public Types

  • typedef _Tp element_type β€” the typedef that tells everyone what type this thing is pointing at. Iconic, necessary, doing its job.

🫢 Public Member Functions

  • _Tp * get () const β€” hands you the stored pointer value back. No drama, just vibes.
  • bool operator< (const _Std_pointer_impl &__rarg) const β€” the less-than comparison, so pointers can be ordered and compared. Slay.
  • bool operator== (const _Std_pointer_impl &__rarg) const β€” the equality comparison. Are these two the same? This answers that, fr fr.
  • void set (element_type *__arg) β€” stores a pointer value. That's it. That's the whole function. πŸ’–

πŸ¦‹ Detailed Description

template<typename _Tp>
class __gnu_cxx::_Std_pointer_impl< _Tp >

Okay so listen: this class is a storage policy for use with _Pointer_adapter<> which yields a standard pointer. That's the one-liner. 🌈

Now here's the tea β€” a _Storage_policy is required to provide these things, and our girl delivers all of them:

  1. A get() API for returning the stored pointer value. βœ…
  2. An set() API for storing a pointer value. βœ…
  3. An element_type typedef to define the type this points to. βœ…
  4. An operator<() to support pointer comparison. βœ…
  5. An operator==() to support pointer comparison. βœ…
Yes, the original says "4 things" and then lists 5. Not me fixing it. We report, we don't edit. πŸ˜­πŸ’€ The list is the list, periodt.

πŸ‘‘ Author

Generated automatically by Doxygen for libstdc++ from the source code. No human wrote this prose, it just appeared, main character energy honestly.


And that's the page, bestie β€” source libstdc++, generated by Doxygen, and that header/footer you saw is just the 3cxx manual-page glow-up wrapping around all of it. Go forth and store your pointers. πŸŽ€πŸ’œ