__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 π₯π
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms