Very bare-bones version of std::optional-like with rebinding assignment semantics. More...
#include <fn.hpp>
Public Types | |
using | value_type = T |
Public Member Functions | |
maybe () | |
maybe (const maybe &)=delete | |
maybe & | operator= (const maybe &)=delete |
maybe (T &&val) | |
maybe (maybe &&other) noexcept | |
maybe & | operator= (maybe &&other) noexcept |
void | reset (T &&val) |
void | reset () |
operator bool () const noexcept | |
T & | operator * () noexcept |
const T & | operator * () const noexcept |
~maybe () | |
Very bare-bones version of std::optional-like with rebinding assignment semantics.
using rangeless::fn::impl::maybe< T >::value_type = T |
|
inline |
|
delete |
|
inline |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
delete |
|
inlinenoexcept |
|
inline |
|
inline |
sentinel rangeless::fn::impl::maybe< T >::m_sentinel |
T rangeless::fn::impl::maybe< T >::m_value |