proxygen
OddCompare< T > Struct Template Reference

Public Member Functions

constexpr ordering operator() (T const &a, T const &b) const
 

Detailed Description

template<typename T>
struct OddCompare< T >

Definition at line 24 of file OrderingTest.cpp.

Member Function Documentation

template<typename T >
constexpr ordering OddCompare< T >::operator() ( T const &  a,
T const &  b 
) const
inline

Definition at line 25 of file OrderingTest.cpp.

References folly::eq, folly::gt, and folly::lt.

25  {
26  return b < a ? ordering::lt : a < b ? ordering::gt : ordering::eq;
27  }
char b
char a

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