Simple-Utility v2.3.1
Loading...
Searching...
No Matches
sl::nullables::adaptable_with Concept Reference

Determines whether the given adapted and null type satisfy the requirements to be used within a adapter. More...

#include <adapter.hpp>

Concept definition

template<class TAdapted, class TNull>
concept sl::nullables::adaptable_with = std::movable<TNull>
&& std::movable<TAdapted>
&& requires
{
typename adapted_value_t<TAdapted>;
{ unwrap_adapted(std::declval<TAdapted>()) } -> std::convertible_to<adapted_value_t<TAdapted>>;
}
Checks whether a symmetrical set of operators == and != to compare both types with each other exists.
Definition: stl_extensions.hpp:124
Determines whether the given adapted and null type satisfy the requirements to be used within a adapt...
Definition: adapter.hpp:96
constexpr detail::unwrap_adapted_fn unwrap_adapted
Definition: adapter.hpp:46

Detailed Description

Determines whether the given adapted and null type satisfy the requirements to be used within a adapter.

Template Parameters
TAdaptedThe adapted type.
TNullThe null type.