All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Member Functions | List of all members
paal::utils::functor_to_comparator< Functor, Compare > Struct Template Reference

#include <functors.hpp>

Public Member Functions

 functor_to_comparator (Functor f, Compare c=Compare())
 constructor More...
 
template<typename T >
auto operator() (const T &left, const T &right) const -> decltype(std::declval< Compare >()(std::declval< Functor >()(left), std::declval< Functor >()(right)))
 operator() More...
 

Detailed Description

template<typename Functor, typename Compare = less>
struct paal::utils::functor_to_comparator< Functor, Compare >

This comparator takes functor "f" and comparator "c" and for elements(x,y) returns c(f(x), f(y)) c is less by default

Definition at line 613 of file functors.hpp.

Constructor & Destructor Documentation

template<typename Functor , typename Compare = less>
paal::utils::functor_to_comparator< Functor, Compare >::functor_to_comparator ( Functor  f,
Compare  c = Compare() 
)
inline

constructor

Parameters
f
c

Definition at line 620 of file functors.hpp.

Member Function Documentation

template<typename Functor , typename Compare = less>
template<typename T >
auto paal::utils::functor_to_comparator< Functor, Compare >::operator() ( const T &  left,
const T &  right 
) const -> decltype( std::declval<Compare>()(std::declval<Functor>()(left), std::declval<Functor>()(right)))
inline

operator()

Template Parameters
T
Parameters
left
right
Returns

Definition at line 632 of file functors.hpp.


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