OKlibrary  0.2.1.6
OKlib::Concepts::LessThanComparable< T > Class Template Reference

LessThanComparable according to Table 29 in the standard (plus const-correctness) More...

#include <std_Basics.hpp>

List of all members.

Public Member Functions

void constraints ()

Public Attributes

T x
T y
const T a
const T b

Detailed Description

template<typename T>
class OKlib::Concepts::LessThanComparable< T >

LessThanComparable according to Table 29 in the standard (plus const-correctness)

Semantical requirements:

  • not a < a
  • if a < b and b < c then a < c
  • define a ~ b as (not (a < b) and not (b < a)): ~ is an equivalence relation Comment: This makes < "basically" a total order.
Todo:
LessThanComparable_Archetype should use the provided type convertible_to_bool.

Definition at line 91 of file std_Basics.hpp.


Member Function Documentation


Member Data Documentation

template<typename T >
const T OKlib::Concepts::LessThanComparable< T >::a
template<typename T >
const T OKlib::Concepts::LessThanComparable< T >::b
template<typename T >
T OKlib::Concepts::LessThanComparable< T >::x
template<typename T >
T OKlib::Concepts::LessThanComparable< T >::y

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