class ok
Declaration
template <class T>
class ok { /* full declaration omitted */ };
Description
Helper class to construct a result containing a value.
Declared at: libreglisse/result.hpp:98
Member Variables
- private reglisse::ok::value_type m_value
Method Overview
- public constexpr ok<T>(const reglisse::ok::value_type & value)
- public constexpr ok<T>(reglisse::ok::value_type && value)
- public constexpr auto value() const & noexcept -> const reglisse::ok::value_type &
- public constexpr auto value() & noexcept -> reglisse::ok::value_type &
- public constexpr auto value() const && noexcept -> const reglisse::ok::value_type
- public constexpr auto value() && noexcept -> reglisse::ok::value_type
Methods
constexpr ok<T>(
const reglisse::ok::value_type& value)
constexpr ok<T>(
const reglisse::ok::value_type& value)
Declared at: libreglisse/result.hpp:104
Parameters
- const reglisse::ok::value_type& value
constexpr ok<T>(reglisse::ok::value_type&& value)
constexpr ok<T>(reglisse::ok::value_type&& value)
Declared at: libreglisse/result.hpp:105
Parameters
- reglisse::ok::value_type&& value
constexpr auto value() const& noexcept
-> const reglisse::ok::value_type&
constexpr auto value() const& noexcept
-> const reglisse::ok::value_type&
Declared at: libreglisse/result.hpp:107
constexpr auto value() & noexcept
-> reglisse::ok::value_type&
constexpr auto value() & noexcept
-> reglisse::ok::value_type&
Declared at: libreglisse/result.hpp:108
constexpr auto value() const&& noexcept
-> const reglisse::ok::value_type
constexpr auto value() const&& noexcept
-> const reglisse::ok::value_type
Declared at: libreglisse/result.hpp:109
constexpr auto value() && noexcept
-> reglisse::ok::value_type
constexpr auto value() && noexcept
-> reglisse::ok::value_type
Declared at: libreglisse/result.hpp:110