Simple-Utility v2.3.1
Loading...
Searching...
No Matches
sl::concepts::complemented_r Concept Reference

Determines whether a type can be used in operator ~ expression and if the return type is convertible to the expected one. More...

#include <operators.hpp>

Concept definition

template<class T, class TResult std::remove_cvref_t<T>>
concept sl::concepts::complemented_r = requires(T t)
{
{ ~t } -> std::convertible_to<TResult>;
}
Determines whether a type can be used in operator ~ expression and if the return type is convertible ...
Definition: operators.hpp:323

Detailed Description

Determines whether a type can be used in operator ~ expression and if the return type is convertible to the expected one.

Template Parameters
TThe type to check
TResultThe expected return type