STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
__gnu_parallel::__adjacent_difference_selector< _It > Struct Template Reference

Selector that returns the difference between two adjacent __elements. More...

#include <parallel/for_each_selectors.h>

Inheritance diagram for __gnu_parallel::__adjacent_difference_selector< _It >:
__gnu_parallel::__generic_for_each_selector< _It >

Public Member Functions

template<typename _Op >
bool operator() (_Op &__o, _It __i)
 

Additional Inherited Members

- Public Attributes inherited from __gnu_parallel::__generic_for_each_selector< _It >
_It _M_finish_iterator
 _Iterator on last element processed; needed for some algorithms (e. g. std::transform()). More...
 

Detailed Description

template<typename _It>
struct __gnu_parallel::__adjacent_difference_selector< _It >

Selector that returns the difference between two adjacent __elements.

Member Function Documentation

template<typename _It>
template<typename _Op >
bool __gnu_parallel::__adjacent_difference_selector< _It >::operator() ( _Op &  __o,
_It  __i 
)
inline
275  {
276  typename _It::first_type __go_back_one = __i.first;
277  --__go_back_one;
278  *__i.second = __o(*__i.first, *__go_back_one);
279  return true;
280  }

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