__GNU_PARALLEL::__REPLACE_SELECTOR(3cxx)

okay bestie, gather round πŸ’– this is the 3cxx manual page for __gnu_parallel::__replace_selector< _It, _Tp >, and it's literally the std::replace() selector. no cap.

✨ NAME ✨

__gnu_parallel::__replace_selector< _It, _Tp > β€” the std::replace() selector. that's the name, that's the vibe πŸŽ€

🌸 SYNOPSIS 🌸

#include <for_each_selectors.h>

it inherits from __gnu_parallel::__generic_for_each_selector< _It > β€” iconic inheritance behavior, honestly πŸ’…

πŸ¦‹ Public Member Functions πŸ¦‹

  • __replace_selector (const _Tp &__new_val) β€” Constructor.
  • bool operator() (_Tp &__v, _It __i) β€” Functor execution.

πŸ‘‘ Public Attributes πŸ‘‘

  • const _Tp & __new_val β€” Value to replace with.
  • _It _M_finish_iterator β€” _Iterator on last element processed; needed for some algorithms (e. g. std::transform()).

πŸ’œ Detailed Description πŸ’œ

here's the declaration exactly as it appears β€” yes, including the little quote situation, iykyk:

   template<typename _It, typename _Tp>
       struct __gnu_parallel::__replace_selector< _It, _Tp >"std::replace()
       selector.

so it's a struct template over _It and _Tp, and it's the std::replace() selector. periodt.

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

   template<typename _It , typename _Tp > __gnu_parallel::__replace_selector<
       _It, _Tp >::__replace_selector (const _Tp & __new_val) [inline],
       [explicit]

constructor! it's inline and explicit β€” no sneaky implicit conversions here, bestie ✨

Parameters

  • __new_val β€” Value to replace with.

πŸ”₯ Member Function Documentation πŸ”₯

   template<typename _It , typename _Tp > bool
       __gnu_parallel::__replace_selector< _It, _Tp >::operator() (_Tp & __v,
       _It __i) [inline]

this is the functor execution, and it's inline πŸ’«

Parameters

  • __v β€” Current value.
  • __i β€” iterator referencing object.

References

  • __gnu_parallel::__replace_selector< _It, _Tp >::__new_val

🌈 Member Data Documentation 🌈

   template<typename _It , typename _Tp > const _Tp&
       __gnu_parallel::__replace_selector< _It, _Tp >::__new_val

__new_val β€” Value to replace with. it's referenced by __gnu_parallel::__replace_selector< _It, _Tp >::operator()() 🫢

and the inherited one:

   template<typename _It > _It __gnu_parallel::__generic_for_each_selector< _It
       >::_M_finish_iterator [inherited]

_M_finish_iterator β€” _Iterator on last element processed; needed for some algorithms (e. g. std::transform()). keep that underscore, bestie, it's important πŸ’…

🧚 Author 🧚

Generated automatically by Doxygen for libstdc++ from the source code. doxygen ate, no cap πŸ’€


alright that's the whole page β€” this is libstdc++, manual section 3cxx, and the footer is just the truncated title with no date, so no extra calendar lore today. bye bestie, go replace some values πŸ”₯πŸ’–