Classes | Enumerations | Functions
absl::compare_internal Namespace Reference

Classes

struct  Fail
struct  OnlyLiteralZero
struct  partial_ordering_base
struct  strong_equality_base
struct  strong_ordering_base
struct  weak_equality_base
struct  weak_ordering_base

Enumerations

enum  eq { equal = 0, equivalent = equal, nonequal = 1, nonequivalent = nonequal }
enum  ncmp { unordered = -127 }
enum  ord { less = -1, greater = 1 }

Functions

template<typename Bool , absl::enable_if_t< std::is_same< bool, Bool >::value, int > = 0>
constexpr bool compare_result_as_less_than (const Bool r)
constexpr bool compare_result_as_less_than (const absl::weak_ordering r)
template<typename Int , absl::enable_if_t< std::is_same< int, Int >::value, int > = 0>
constexpr absl::weak_ordering compare_result_as_ordering (const Int c)
constexpr absl::weak_ordering compare_result_as_ordering (const absl::weak_ordering c)
template<typename Compare , typename K , typename LK >
constexpr bool do_less_than_comparison (const Compare &compare, const K &x, const LK &y)
template<typename Compare , typename K , typename LK , absl::enable_if_t<!std::is_same< bool, absl::result_of_t< Compare(const K &, const LK &)>>::value, int > = 0>
constexpr absl::weak_ordering do_three_way_comparison (const Compare &compare, const K &x, const LK &y)

Enumeration Type Documentation

Enumerator:
equal 
equivalent 
nonequal 
nonequivalent 

Definition at line 71 of file compare.h.

Enumerator:
unordered 

Definition at line 80 of file compare.h.

Enumerator:
less 
greater 

Definition at line 78 of file compare.h.


Function Documentation

template<typename Bool , absl::enable_if_t< std::is_same< bool, Bool >::value, int > = 0>
constexpr bool absl::compare_internal::compare_result_as_less_than ( const Bool  r)

Definition at line 458 of file compare.h.

Definition at line 459 of file compare.h.

template<typename Int , absl::enable_if_t< std::is_same< int, Int >::value, int > = 0>
constexpr absl::weak_ordering absl::compare_internal::compare_result_as_ordering ( const Int  c)

Definition at line 474 of file compare.h.

Definition at line 479 of file compare.h.

template<typename Compare , typename K , typename LK >
constexpr bool absl::compare_internal::do_less_than_comparison ( const Compare &  compare,
const K &  x,
const LK &  y 
)

Definition at line 464 of file compare.h.

template<typename Compare , typename K , typename LK , absl::enable_if_t<!std::is_same< bool, absl::result_of_t< Compare(const K &, const LK &)>>::value, int > = 0>
constexpr absl::weak_ordering absl::compare_internal::do_three_way_comparison ( const Compare &  compare,
const K &  x,
const LK &  y 
)

Definition at line 489 of file compare.h.



abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:42:16