/////////////////////////////////////////////////////////////////////////// /// \brief Base class of assignment to enable construction and assignment /// /// This class is used with several pieces of construction to ensure /// trivial constructibility and assignability: /// /// * result_trivial_copy_ctor_base
/// * result_trivial_move_ctor_base
/// * result_copy_assign_base
/// * result_move_assign_base
/// /// \tparam T the value type /// \tparam E the error type ///////////////////////////////////////////////////////////////////////////
Class result_construct_base<T, E>
#include <Geode/external/result/result.hpp>
Examples0
Public static methods0
Public member functions15
template<typename...Args>voidresult_construct_base<T, E>(,Args &&...args)
/// \brief Constructs the underlying value from the specified \p args /// /// \param args the arguments to forward to T’s constructor
template<typename...Args>voidresult_construct_base<T, E>(,Args &&...args)
/// \brief Constructs the underlying error from the specified \p args /// /// \param args the arguments to forward to E’s constructor
cpp::bitwizeshift::detail::result_construct_base&operator=()
cpp::bitwizeshift::detail::result_construct_base&operator=()
template<typename...Args>voidconstruct_value(Args &&...args)
/// \brief Constructs the value type from \p args /// /// \note This is an implementation detail only meant to be used during /// construction /// /// \pre there is no contained value or error at the time of construction /// /// \param args the arguments to forward to T’s constructor
template<typename...Args>voidconstruct_error(Args &&...args)
/// \brief Constructs the error type from \p args /// /// \note This is an implementation detail only meant to be used during /// construction /// /// \pre there is no contained value or error at the time of construction /// /// \param args the arguments to forward to E’s constructor
template<typename Result>voidconstruct_error_from_result(Result&&other)
/// \brief Constructs the underlying error from the \p other result /// /// If \p other contains a value, then the T type will be /// default-constructed. /// /// \note This is an implementation detail only meant to be used during /// construction of result<void, E>
types /// /// \pre there is no contained value or error at the time of construction /// /// \param other the other result to construct
template<typename Result>voidconstruct_from_result(Result&&other)
/// \brief Constructs the underlying type from a result object /// /// \note This is an implementation detail only meant to be used during /// construction /// /// \pre there is no contained value or error at the time of construction /// /// \param other the other result to construct