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

Checks whether a type is nullable. More...

#include <base.hpp>

Concept definition

template<class T>
&& concepts::initializes<decltype(null_v<T>), std::remove_cvref_t<T>>
&& std::is_assignable_v<std::remove_cvref_t<T>&, decltype(null_v<T>)>
Checks whether the target type is constructible from the source type.
Definition: stl_extensions.hpp:78
Checks whether a type is an input_nullable.
Definition: base.hpp:170
Checks whether a type is nullable.
Definition: base.hpp:186

Detailed Description

Checks whether a type is nullable.

A type is considered as nullable if:

  • it satisfies the input_nullable concept
  • it is initializable by its null-object and
  • it is assignable by its null-object.
    Template Parameters
    TType to check