libstdc++
__gnu_parallel::__replace_selector< _It, _Tp > Struct Template Reference
Inheritance diagram for __gnu_parallel::__replace_selector< _It, _Tp >:
[legend]

Public Member Functions

 __replace_selector (const _Tp &__new_val)
 
bool operator() (_Tp &__v, _It __i)
 

Public Attributes

const _Tp & __new_val
 
_It _M_finish_iterator
 

Detailed Description

template<typename _It, typename _Tp>
struct __gnu_parallel::__replace_selector< _It, _Tp >

std::replace() selector.

Definition at line 132 of file for_each_selectors.h.

Constructor & Destructor Documentation

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

Constructor.

Parameters
__new_valValue to replace with.

Definition at line 140 of file for_each_selectors.h.

Member Function Documentation

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

Functor execution.

Parameters
__vCurrent value.
__iiterator referencing object.

Definition at line 146 of file for_each_selectors.h.

Member Data Documentation

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

Value to replace with.

Definition at line 135 of file for_each_selectors.h.

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

Definition at line 47 of file for_each_selectors.h.


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