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

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

#include <operators.hpp>

Concept definition

template<class T, class TIndex, class TReturn>
concept sl::concepts::index_dereferencable_r = requires(T t, TIndex i)
{
{ t[i] } -> std::convertible_to<TReturn>;
}
Determines whether a type can be used in operator -> expressions and if the return type is convertibl...
Definition: operators.hpp:774

Detailed Description

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

Template Parameters
TThe type to check
TIndexThe index type
TReturnThe expected return type