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

Reduction for finding the maximum element, using a comparator. More...

#include <parallel/for_each_selectors.h>

Public Member Functions

 __max_element_reduct (_Compare &__c)
 
_It operator() (_It __x, _It __y)
 

Public Attributes

_Compare & __comp
 

Detailed Description

template<typename _Compare, typename _It>
struct __gnu_parallel::__max_element_reduct< _Compare, _It >

Reduction for finding the maximum element, using a comparator.

Constructor & Destructor Documentation

template<typename _Compare , typename _It >
__gnu_parallel::__max_element_reduct< _Compare, _It >::__max_element_reduct ( _Compare &  __c)
inlineexplicit
326 : __comp(__c) { }
_Compare & __comp
Definition: for_each_selectors.h:323

Member Function Documentation

template<typename _Compare , typename _It >
_It __gnu_parallel::__max_element_reduct< _Compare, _It >::operator() ( _It  __x,
_It  __y 
)
inline
330  { return (__comp(*__x, *__y)) ? __y : __x; }
_Compare & __comp
Definition: for_each_selectors.h:323

Member Data Documentation

template<typename _Compare , typename _It >
_Compare& __gnu_parallel::__max_element_reduct< _Compare, _It >::__comp

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