__gnu_para...f_selector(3)
πΈ NAME πΈ
So this whole page lives in the Library Functions Manual bestie, and it's all about __gnu_parallel::find_if_selector β a lil helper that tests a predicate on a single element, and it's the one doing the heavy lifting behind std::find() and std::find_if (). π
β¨ SYNOPSIS β¨
K so first thing: it Inherits __gnu_parallel::generic_find_selector. Family tree moment. π«Ά
π Public Member Functions π
operator()βtemplate<typename RandomAccessIterator1 , typename RandomAccessIterator2 , typename Pred > bool operator() (RandomAccessIterator1 i1, RandomAccessIterator2 i2, Pred pred)sequential_algorithm()βtemplate<typename RandomAccessIterator1 , typename RandomAccessIterator2 , typename Pred > std::pair< RandomAccessIterator1, RandomAccessIterator2 > sequential_algorithm (RandomAccessIterator1 begin1, RandomAccessIterator1 end1, RandomAccessIterator2 begin2, Pred pred)
π¦ DESCRIPTION (the Detailed one) π¦
Okay so literally what it says on the tin: it tests a predicate on a single element, and it's the selector used for std::find() and std::find_if (). That's the whole vibe. β¨
Fun little origination fact for you: it's Definition at line 50 of file find_selectors.h. Slay.
π MEMBER FUNCTION DOCUMENTATION π
π₯ operator()
template<typename RandomAccessIterator1 , typename RandomAccessIterator2 , typename Pred >
bool __gnu_parallel::find_if_selector::operator() (RandomAccessIterator1 i1, RandomAccessIterator2 i2, Pred pred) [inline]
This one does the test on one position. One. Single. Position. Main character energy tbh.
Parameters: π
i1β iterator on first sequence.i2β iterator on second sequence (unused). yeah she's just there for the fit πpredβ the find predicate.
It's Definition at line 60 of file find_selectors.h. No cap. π§
π sequential_algorithm()
template<typename RandomAccessIterator1 , typename RandomAccessIterator2 , typename Pred >
std::pair<RandomAccessIterator1, RandomAccessIterator2> __gnu_parallel::find_if_selector::sequential_algorithm (RandomAccessIterator1 begin1, RandomAccessIterator1 end1, RandomAccessIterator2 begin2, Pred pred) [inline]
The corresponding sequential algorithm on a sequence β like, the non-parallel version of the same job. She's the calm one. π
Parameters: π
begin1β begin iterator of first sequence.end1β end iterator of first sequence.begin2β begin iterator of second sequence.predβ the find predicate.
It's Definition at line 72 of file find_selectors.h. Iconic. π
π AUTHOR π
Generated automatically by Doxygen for libstdc++ from the source code. Not a human, just a robot doing its lil thing. π€π
ok that's the whole page bestie, go forth and find_if responsibly π¦
Sign-off time: this beauty came from libstdc++, dated 21 Apr 2009 β vintage, lowkey. Mwah. ππ
π¦ where this page comes from
- nixpkgs unstable: std-man-pages 4.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms