Function operator=
Summary
#include "breeze/vocabulary/maybe.hpp"
(1) maybe & operator=(maybe const &other)
(2) maybe & operator=(maybe &&other) noexcept
(3) maybe & operator=(T const &value)
(4) maybe & operator=(T &&value) noexcept
Function overload
Synopsis
#include "breeze/vocabulary/maybe.hpp"
maybe & operator=(maybe const &other)
Description
- Postcondition
- ! is_valid() || value() refers to a copy of other.value()
- status() == other.status()
Source
Line 298 in breeze/vocabulary/maybe.hpp.
Synopsis
#include "breeze/vocabulary/maybe.hpp"
maybe & operator=(maybe &&other) noexcept
Description
- Postcondition
- ! is_valid() || value() is moved from other.value()
- status() == other.status()
Source
Line 304 in breeze/vocabulary/maybe.hpp.
Synopsis
#include "breeze/vocabulary/maybe.hpp"
maybe & operator=(T const &value)
Description
- Parameters
value
- The value to copy.- Postcondition
- is_valid()
- value() refers to a copy of value
- status == Traits::default_valid()
Source
Line 314 in breeze/vocabulary/maybe.hpp.
Synopsis
#include "breeze/vocabulary/maybe.hpp"
maybe & operator=(T &&value) noexcept
Description
- Postcondition
- is_valid()
- value() is moved from value
- status() == Traits::default_valid()
Source
Line 321 in breeze/vocabulary/maybe.hpp.