__gnu_pbds::sample_update_policy(3cxx)

πŸ’– NAME πŸ’–

okay so bestie, you opened the __gnu_pbds::sample_update_policy(3cxx) manual page and the main character is __gnu_pbds::sample_update_policy β€” described as β€œA sample list-update policy.” That’s the whole name reveal, no cap ✨.

πŸ¦‹ SYNOPSIS πŸ¦‹

Start here, bestie:

#include <sample_update_policy.hpp>

🫢 Public Member Functions

  • sample_update_policy () β€” default constructor. it does the default-constructor thing, periodt.
  • sample_update_policy (const sample_update_policy &) β€” copy constructor. iconic copy behavior πŸ’….
  • void swap (sample_update_policy &other) β€” swaps content. that’s it, that’s the function 🫢.

πŸŽ€ Protected Types

  • typedef some_metadata_type metadata_type β€” metadata on which this functor operates. lowkey important.

🧚 Protected Member Functions

  • metadata_type operator() () const β€” creates a metadata object.
  • bool operator() (metadata_reference) const β€” decides whether a metadata object should be moved to the front of the list. A list-update based containers object will call this method to decide whether to move a node to the front of the list. The method should return true if the node should be moved to the front of the list.

🌸 Detailed Description 🌸

A sample list-update policy. That’s the whole detailed description, bestie β€” short and slay ✨.

πŸ¦‹ Member Typedef Documentation πŸ¦‹

typedef some_metadata_type __gnu_pbds::sample_update_policy::metadata_type

[protected]

Metadata on which this functor operates. yes, it’s giving β€œmetadata on which this functor operates” again β€” because documentation loves a callback πŸ’–.

πŸ‘‘ Constructor & Destructor Documentation πŸ‘‘

__gnu_pbds::sample_update_policy::sample_update_policy ()

Default constructor. no notes, it’s just the default constructor πŸŽ€.

__gnu_pbds::sample_update_policy::sample_update_policy (const sample_update_policy &)

Copy constructor. copying is its whole personality here 🫢.

πŸ’œ Member Function Documentation πŸ’œ

metadata_type __gnu_pbds::sample_update_policy::operator() () const

[protected]

Creates a metadata object.

bool __gnu_pbds::sample_update_policy::operator() (metadata_reference) const

[protected]

Decides whether a metadata object should be moved to the front of the list. A list-update based containers object will call this method to decide whether to move a node to the front of the list. The method should return true if the node should be moved to the front of the list. fr fr, that’s the decision logic 🌈.

void __gnu_pbds::sample_update_policy::swap (sample_update_policy & other)

[inline]

Swaps content.

🌈 Author 🌈

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


mwah πŸ’‹ source/version footer vibes: libstd__gnu_pbds::sample_update_policy(3cxx) β€” and the original footer isn’t handing out a date, bestie, so we’re not inventing one πŸ™ˆπŸŽ€