Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Concept LessThanComparable

LessThanComparable

Description

LessThanComparable types must have <, >, <=, and >= operators.

Notation

X
A type playing the role of comparable-type in the LessThanComparable concept.
x, y
Objects of type X

Valid expressions

Name Expression Type Semantics

Less than

x < y

Convertible to bool

Determine if one value is less than another.

Less than or equal

x <= y

Convertible to bool

Determine if one value is less than or equal to another.

Greater than

x > y

Convertible to bool

Determine if one value is greater than another.

Greater than or equal to

x >= y

Convertible to bool

Determine if one value is greater than or equal to another.

Models

  • int

PrevUpHomeNext