Function maybe

Summary

#include "breeze/vocabulary/maybe.hpp"

(1) explicit maybe(status_type status=Traits::default_invalid())

(2) explicit maybe(T const &value, status_type status=Traits::default_valid())

(3) explicit maybe(T &&value, status_type status=Traits::default_valid())

(4) maybe(maybe const &other)

(5) maybe(maybe &&other) noexcept

Function overload

Synopsis

#include "breeze/vocabulary/maybe.hpp"

explicit maybe(status_type status=Traits::default_invalid())

Description

Constructs an invalid maybe.

Precondition
! Traits::is_valid( status )
Postcondition

Source

Line 239 in breeze/vocabulary/maybe.hpp.

Synopsis

#include "breeze/vocabulary/maybe.hpp"

explicit maybe(T const &value, status_type status=Traits::default_valid())

Description

Constructs a valid maybe.

Precondition
Traits::is_valid( status )
Parameters

value - The T value to copy.

status - The status to associate to the object.

Postcondition

Source

Line 258 in breeze/vocabulary/maybe.hpp.

Synopsis

#include "breeze/vocabulary/maybe.hpp"

explicit maybe(T &&value, status_type status=Traits::default_valid())

Description

Precondition
Traits::is_valid( status )
Parameters

value - The T value to move from.

status - The status to associate to the object

Postcondition

Source

Line 275 in breeze/vocabulary/maybe.hpp.

Synopsis

#include "breeze/vocabulary/maybe.hpp"

maybe(maybe const &other)

Description

Postcondition

Source

Line 283 in breeze/vocabulary/maybe.hpp.

Synopsis

#include "breeze/vocabulary/maybe.hpp"

maybe(maybe &&other) noexcept

Description

Postcondition

Source

Line 289 in breeze/vocabulary/maybe.hpp.