Classes | Typedefs | 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
 

Typedefs

using value_type = int8_t
 

Enumerations

enum  eq : value_type { eq::equal = 0, eq::equivalent = equal, eq::nonequal = 1, eq::nonequivalent = nonequal }
 
enum  ncmp : value_type { ncmp::unordered = -127 }
 
enum  ord : value_type { ord::less = -1, ord::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)
 

Typedef Documentation

using absl::compare_internal::value_type = typedef int8_t

Definition at line 44 of file compare.h.

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.

constexpr bool absl::compare_internal::compare_result_as_less_than ( const absl::weak_ordering  r)

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.

constexpr absl::weak_ordering absl::compare_internal::compare_result_as_ordering ( const absl::weak_ordering  c)

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 Tue Jun 18 2019 19:44:38