All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
gears::concepts::LessThanComparable< T, U > Struct Template Reference

Checks if a type can be compared with <. More...

Inherits TraitOf< detail::is_less_than_comparable, T, U >.

Detailed Description

template<typename T, typename U = T>
struct gears::concepts::LessThanComparable< T, U >

A Binary concept that checks if a type can be compared with operator<.

In order for a type to meet this concept, the following expression has to be valid:

bool b = x < y;

Where x is an instance of T, and y is an instance of U.

The result of the expression must return bool or something convertible to bool.

Template Parameters
TLeft type to check
URight type to check

Definition at line 610 of file basic.hpp.