logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

__gnu_parallel::__replace_if_selector.3cxx

Author

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

                                                    libst__gnu_parallel::__repla...lector<_It,_Op,_Tp>(3cxx)

Constructor & Destructor Documentation

template<typename_It,typename_Op,typename_Tp>__gnu_parallel::__replace_if_selector<_It,_Op,_Tp>::__replace_if_selector(const_Tp&__new_val)[inline],[explicit]
       Constructor.

       Parameters__new_val Value to replace with.

Detailed Description

template<typename_It,typename_Op,typename_Tp>
       struct __gnu_parallel::__replace_if_selector< _It, _Op, _Tp >"std::replace() selector.

Member Data Documentation

template<typename_It,typename_Op,typename_Tp>const_Tp&__gnu_parallel::__replace_if_selector<_It,_Op,_Tp>::__new_val
       Value to replace with.

       Referenced by __gnu_parallel::__replace_if_selector<_It,_Op,_Tp>::operator()().

   template<typename_It>_It__gnu_parallel::__generic_for_each_selector<_It>::_M_finish_iterator[inherited]
       _Iterator on last element processed; needed for some algorithms (e. g. std::transform()).

Member Function Documentation

template<typename_It,typename_Op,typename_Tp>bool__gnu_parallel::__replace_if_selector<_It,_Op,_Tp>::operator()(_Op&__o,_It__i)[inline]
       Functor execution.

       Parameters__o Operator.
           __i iterator referencing object.

       References __gnu_parallel::__replace_if_selector<_It,_Op,_Tp>::__new_val.

Name

       __gnu_parallel::__replace_if_selector< _It, _Op, _Tp > - std::replace() selector.

Synopsis

       #include <for_each_selectors.h>

       Inherits __gnu_parallel::__generic_for_each_selector<_It>.

   PublicMemberFunctions__replace_if_selector (const _Tp &__new_val)
           Constructor.
       bool operator() (_Op &__o, _It __i)
           Functor execution.

   PublicAttributes
       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()).

See Also