ORM C++
Loading...
Searching...
No Matches
NullableAdapter< std::optional< T > > Struct Template Reference
module orm

Public Types

using Value = T

Static Public Member Functions

static constexpr auto hasValue (const std::optional< T > &value) noexcept -> bool
static constexpr auto value (const std::optional< T > &source) -> const T &
static auto make (const T &contained) -> std::optional< T >
static auto make (T &&contained) -> std::optional< T >
static auto none () -> std::optional< T >

Detailed Description

template<typename T>
struct NullableAdapter< std::optional< T > >

std::optional uses the same nullable contract as application wrappers.

Definition at line 179 of file values.cppm.

Member Typedef Documentation

◆ Value

template<typename T>
using NullableAdapter< std::optional< T > >::Value = T

Definition at line 181 of file values.cppm.

Member Function Documentation

◆ hasValue()

template<typename T>
constexpr auto NullableAdapter< std::optional< T > >::hasValue ( const std::optional< T > & value) -> bool
inlinestaticconstexprnoexcept

Definition at line 183 of file values.cppm.

◆ make() [1/2]

template<typename T>
auto NullableAdapter< std::optional< T > >::make ( const T & contained) -> std::optional< T >
inlinestatic

Definition at line 191 of file values.cppm.

◆ make() [2/2]

template<typename T>
auto NullableAdapter< std::optional< T > >::make ( T && contained) -> std::optional< T >
inlinestatic

Definition at line 195 of file values.cppm.

◆ none()

template<typename T>
auto NullableAdapter< std::optional< T > >::none ( ) -> std::optional< T >
inlinestatic

Definition at line 199 of file values.cppm.

◆ value()

template<typename T>
constexpr auto NullableAdapter< std::optional< T > >::value ( const std::optional< T > & source) -> const T &
inlinestaticconstexpr

Definition at line 187 of file values.cppm.


The documentation for this struct was generated from the following file: