GNU g++  v5.2.1
GNU Standard C++
__gnu_parallel::__replace_if_selector< _It, _Op, _Tp > Struct Template Reference

std::replace() selector. More...

#include <for_each_selectors.h>

Inheritance diagram for __gnu_parallel::__replace_if_selector< _It, _Op, _Tp >:
Collaboration diagram for __gnu_parallel::__replace_if_selector< _It, _Op, _Tp >:

Public Member Functions

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

Public Attributes

const _Tp & __new_val
 Value to replace with. More...
 
_It _M_finish_iterator
 _Iterator on last element processed; needed for some algorithms (e. More...
 

Detailed Description

template<typename _It, typename _Op, typename _Tp>
struct __gnu_parallel::__replace_if_selector< _It, _Op, _Tp >

std::replace() selector.

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)
inlineexplicit

Constructor.

Parameters
__new_valValue to replace with.

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
__oOperator.
__iiterator referencing object.

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

Member Data Documentation

template<typename _It , typename _Op , typename _Tp >
const _Tp& __gnu_parallel::__replace_if_selector< _It, _Op, _Tp >::__new_val
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()).

Referenced by _GLIBCXX_VISIBILITY().


The documentation for this struct was generated from the following file: