Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::function_detail::nothrow_less_than Concept Reference

Whether x < y compiles and cannot throw, nor the conversion of its result to bool, which less<T> makes. More...

#include <ahFunction.H>

Concept definition

template<class T>
concept Aleph::function_detail::nothrow_less_than = requires (const T & x, const T & y)
{
{ static_cast<bool>(x < y) } noexcept;
}
Whether x < y compiles and cannot throw, nor the conversion of its result to bool,...
Definition ahFunction.H:106
static mpfr_t y
Definition mpfr_mul_d.c:3
std::decay_t< typename HeadC::Item_Type > T
Definition ah-zip.H:152

Detailed Description

Whether x < y compiles and cannot throw, nor the conversion of its result to bool, which less<T> makes.

A type without < gives false, not an error, as noexcept(x < y) would give where the exception specification of less<T>::operator() is needed, as in std::invocable<less<T>, T, T>: less<T> declares its operator() for any T, as it did

Definition at line 106 of file ahFunction.H.