Files
cppdraft_translate/cppdraft/concepts/compare/general.md
2025-10-25 03:02:53 +03:00

882 B
Raw Blame History

[concepts.compare.general]

18 Concepts library [concepts]

18.5 Comparison concepts [concepts.compare]

18.5.1 General [concepts.compare.general]

1

#

Subclause [concepts.compare] describes concepts that establish relationships and orderings on values of possibly differing object types.

2

#

Given an expression E and a type C, let CONVERT_TO_LVALUE(E) be:

static_cast<const C&>(as_const(E)) if that is a valid expression, and

static_cast<const C&>(std::move(E)) otherwise.