Loading...
Searching...
No Matches
compare.hh File Reference

This file provides some concepts introduced in the C++20 standard library `<compare>` and `<concepts>` not yet available in all library implementation. More...

`#include <compare>`
`#include <concepts>`
`#include <type_traits>`
`#include <utility>`

Go to the source code of this file.

## Classes

struct | Dune::Std::compare_three_way
| A functor implementing the three-way comparison on the arguments. More...

## Namespaces

namespace | Dune
| Dune namespace
namespace | Dune::Std
| Namespace for features backported from new C++ standards.

## Concepts

concept | Dune::Std::three_way_comparable
| The concept std::three_way_comparable specifies that the three way comparison operator <=> on T yield results consistent with the comparison category implied by Cat.
concept | Dune::Std::three_way_comparable_with
| The concept std::three_way_comparable_with specifies that the three way comparison operator <=> on (possibly mixed) T and U operands yield results consistent with the comparison category implied by Cat. Comparing mixed operands yields results equivalent to comparing the operands converted to their common type.

## Detailed Description

This file provides some concepts introduced in the C++20 standard library `<compare>` and `<concepts>` not yet available in all library implementation.

The code is partially extracted from https://en.cppreference.com/w/cpp/utility/compare.