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

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

#include <operators.hpp>

Concept definition

template<class T, class TReturn>
concept sl::concepts::dereferencable_r = requires(T t)
{
{ *t } -> std::convertible_to<TReturn>;
}
Determines whether a type can be used in unary operator * expressions and if the return type is conve...
Definition: operators.hpp:734

Detailed Description

Determines whether a type can be used in unary operator * expressions and if the return type is convertible to the expected one.

Template Parameters
TThe type to check
TReturnThe expected return type