Home   Manual   Type Index   Symbol Index   Topics Index

std::less

compares two objects in an object specific way

Description

The two objects must be of a comparable type.

This function is used to implement the following comparison operators:

a < b

is converted by the compiler to

std::less(a b)

a > b

is converted by the compiler to

std::less(b a)

a <= b

is converted by the compiler to

std::not(std::less(b a))

a >= b

is converted by the compiler to

std::not(std::less(a b))

See also

std::equal   compares two objects for equality

Implemented by

std_types::character  as  std_types::character/std::less
std_types::octet_string  as  std_types::octet_string/std::less
std_types::positive_integer  as  std_types::positive_integer/std::less