Пространства имён
Варианты
Действия

Концепции C++: LessThanComparable

Материал из cppreference.com

 
 
Концепции C++
Basic
Original:
Basic
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Библиотека-Wide
Original:
Library-Wide
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
EqualityComparable
LessThanComparable
Swappable(C++11)
ValueSwappable(C++11)
Контейнер
Original:
Container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Контейнер элементов
Original:
Container Elements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Iterator
Original:
Iterator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Случайных чисел
Original:
Random Numbers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Параллелизмом
Original:
Concurrency
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
BasicLockable(C++11)
Lockable(C++11)
TimedLockable(C++11)
Mutex(C++11)
TimedMutex(C++11)
Другое
Original:
Other
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Тип должен работать с <оператор и результат должен иметь стандартную семантику.
Original:
The type must work with < operator and the result should have standard semantics.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


[править] Требования

Expression Requirements Return type
a < b
  • !(x < x)
  • если a < b то !(b < a)
    Original:
    if a < b then !(b < a)
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • если a < b и b < c то a < c
    Original:
    if a < b and b < c then a < c
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
(Строгая упорядоченность слабое отношение)
Original:
(strict weak ordering relation)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
bool or a type implicitly convertible to bool