|
Regina 7.4.1 Calculation Engine
|
Helper functions for old compilers that do not properly support C++20. More...
Namespaces | |
| namespace | regina |
| Contains the entire Regina calculation engine. | |
Functions | |
| template<typename Container > | |
| std::strong_ordering | regina::compat::lexCompare (const Container &a, const Container &b) |
| Returns the lexicographical three-way comparison of the two given containers. | |
Helper functions for old compilers that do not properly support C++20.
| std::strong_ordering regina::compat::lexCompare | ( | const Container & | a, |
| const Container & | b ) |
Returns the lexicographical three-way comparison of the two given containers.
The type Container should be a standard container type with begin() and end() functions. The comparison itself is equivalent to a <=> b. It is intended for use with old compilers that do not properly implement spaceship operators on containers such as std::vector or std::map.
It is assumed that the elements of these containers return a std::strong_ordering when compared.
| a | the first of the two containers to compare. |
| b | the second of the two containers to compare. |
a <=> b.