fit::nullable

Summary

Constructors and Destructors

nullable()
nullable(decltype(nullptr))
nullable(T value)
nullable(const nullable & other)
nullable(nullable && other)
~nullable()

Public types

value_type using
T

Public functions

has_value() const
constexpr bool
operator bool() const
constexpr
operator*()
constexpr T &
operator*() const
constexpr const T &
operator->()
constexpr T *
operator->() const
constexpr const T *
operator=(const nullable & other)=default
constexpr nullable &
operator=(nullable && other)=default
constexpr nullable &
operator=(decltype(nullptr))
constexpr nullable &
operator=(T value)
constexpr nullable &
reset()
constexpr void
swap(nullable & other)
constexpr void
value()&
constexpr T &
value() const &
constexpr const T &
value()&&
constexpr T &&
value() const &&
constexpr const T &&
value_or(U && default_value) const
constexpr T

Public types

value_type

T value_type

Public functions

has_value

constexpr bool has_value() const 

nullable

constexpr nullable()=default

nullable

constexpr nullable(
  decltype(nullptr)
)

nullable

constexpr nullable(
  T value
)

nullable

constexpr nullable(
  const nullable & other
)=default

nullable

constexpr nullable(
  nullable && other
)=default

operator bool

constexpr operator bool() const 

operator*

constexpr T & operator*()

operator*

constexpr const T & operator*() const 

operator->

constexpr T * operator->()

operator->

constexpr const T * operator->() const 

operator=

constexpr nullable & operator=(
  const nullable & other
)=default

operator=

constexpr nullable & operator=(
  nullable && other
)=default

operator=

constexpr nullable & operator=(
  decltype(nullptr)
)

operator=

constexpr nullable & operator=(
  T value
)

reset

constexpr void reset()

swap

constexpr void swap(
  nullable & other
)

value

constexpr T & value()&

value

constexpr const T & value() const &

value

constexpr T && value()&&

value

constexpr const T && value() const &&

value_or

constexpr T value_or(
  U && default_value
) const 

~nullable

 ~nullable()=default