Public Member Functions | List of all members
AbsSorter< Data > Struct Template Reference

Public Member Functions

bool operator() (Data a, Data b) const
 
bool operator() (Data const *a, Data const *b) const
 

Detailed Description

template<typename Data>
struct AbsSorter< Data >

Definition at line 25 of file SortByPointers_test.cc.

Member Function Documentation

template<typename Data>
bool AbsSorter< Data >::operator() ( Data  a,
Data  b 
) const
inline

Definition at line 27 of file SortByPointers_test.cc.

27 { return std::abs(a) < std::abs(b); }
T abs(T value)
template<typename Data>
bool AbsSorter< Data >::operator() ( Data const *  a,
Data const *  b 
) const
inline

Definition at line 28 of file SortByPointers_test.cc.

29  { return this->operator()(*a, *b); }
bool operator()(Data a, Data b) const
const double a
static bool * b
Definition: config.cpp:1043

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