__gnu_parallel::replace_selector< It, T > Struct Template Reference

Inheritance diagram for __gnu_parallel::replace_selector< It, T >:

Inheritance graph

List of all members.


Detailed Description

template<typename It, typename T>
struct __gnu_parallel::replace_selector< It, T >

std::replace() selector.

Definition at line 140 of file for_each_selectors.h.

Public Member Functions

Public Attributes


Constructor & Destructor Documentation

template<typename It, typename T>
__gnu_parallel::replace_selector< It, T >::replace_selector ( const T &  new_val  )  [inline, explicit]

Constructor.

Parameters:
new_val Value to replace with.

Definition at line 148 of file for_each_selectors.h.


Member Function Documentation

template<typename It, typename T>
bool __gnu_parallel::replace_selector< It, T >::operator() ( T &  v,
It  i 
) [inline]

Functor execution.

Parameters:
v Current value.
i Iterator referencing object.

Definition at line 154 of file for_each_selectors.h.

References __gnu_parallel::replace_selector< It, T >::new_val.


Member Data Documentation

template<typename It>
It __gnu_parallel::generic_for_each_selector< It >::finish_iterator [inherited]

Iterator on last element processed; needed for some algorithms (e. g. std::transform()).

Definition at line 54 of file for_each_selectors.h.

template<typename It, typename T>
const T& __gnu_parallel::replace_selector< It, T >::new_val

Value to replace with.

Definition at line 143 of file for_each_selectors.h.

Referenced by __gnu_parallel::replace_selector< It, T >::operator()().


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

Generated on Sat Oct 25 05:09:44 2008 for libstdc++ by  doxygen 1.5.6