__gnu_para...e_selector(3)

πŸ“¦ version 4.4.0, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is the Library Functions Manual page for __gnu_para...e_selector(3), bestie ✨ β€” and it's literally the selector for std::replace(). That's the whole vibe. πŸ’…


✨ SYNOPSIS ✨

Inherits generic_for_each_selector< It >.

Public Member Functions

  • bool operator() (T &v, It i)
  • replace_selector (const T &new_val)

Public Attributes

  • It finish_iterator
  • const T & new_val

πŸ¦‹ Detailed Description πŸ¦‹

okay so picture this:

   template<typename It, typename T> struct __gnu_parallel::replace_selector<
       It, T >
       std::replace() selector.

It's giving std::replace() selector energy, no cap. 🫢

Definition at line 134 of file for_each_selectors.h.


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

🌸 replace_selector β€” constructor

   template<typename It , typename T > __gnu_parallel::replace_selector< It, T
       >::replace_selector (const T & new_val) [inline, explicit]

Constructor. πŸ’–

Parameters:

  • new_val β€” Value to replace with.

Definition at line 142 of file for_each_selectors.h.


🧚 Member Function Documentation 🧚

πŸ”₯ operator() β€” functor execution

   template<typename It , typename T > bool __gnu_parallel::replace_selector<
       It, T >::operator() (T & v, It i) [inline]

Functor execution. ✨

Parameters:

  • v β€” Current value.
  • i β€” Iterator referencing object.

Definition at line 148 of file for_each_selectors.h.

References __gnu_parallel::replace_selector< It, T >::new_val. πŸ’œ


πŸ“ Member Data Documentation πŸ“

🫢 finish_iterator β€” inherited

It __gnu_parallel::generic_for_each_selector< It >::finish_iterator [inherited]

Iterator on last element processed; needed for some algorithms (e. g. std::transform()). 🌈

Definition at line 48 of file for_each_selectors.h.

πŸ’– new_val

   template<typename It , typename T > const T&
       __gnu_parallel::replace_selector< It, T >::new_val

Value to replace with. πŸŽ€

Definition at line 137 of file for_each_selectors.h.

Referenced by __gnu_parallel::replace_selector< It, T >::operator()(). ⭐


πŸ’œ AUTHOR πŸ’œ

Generated automatically by Doxygen for libstdc++ from the source code. πŸ¦‹

xoxo bestie, this page is from libstdc++, dated 21 Apr 2009, and its page tag is __gnu_para...e_selector(3). πŸ’…βœ¨
πŸ“¦ where this page comes from