← API Reference Class

template<typename T, typename Derived> asge::errors::_internal::ResultBase

#include <Errors.hpp>

Protected Types

#using error_info = errors::_internal::ErrorInfoprotected

Public Types

#using value_type = T

Private Attributes

#friend Derivedprivate

Static Private Attributes

#static constexpr bool is_result_v = is_result_impl<ResultT>::valueprivate

Protected Attributes

#std::variant< T, error_info > m_Storageprotected

Protected Member Functions

#ResultBase(std::in_place_index_t< 0 >, T inValue)protected
#ResultBase(std::in_place_index_t< 1 >, error_info inError)protected

Static Public Member Functions

#static Derived Ok(T inValue) noexcept
#static Derived Err(error_info inError) noexcept
#static Derived Err(std::error_code code)
#static Derived Err(std::error_code code, std::string detail)
#template<typename Other> static Derived From(Other &&other) noexcept

Public Member Functions

#bool IsOk() const noexcept
#explicit operator bool() const noexcept
#T const & Value() const &
#T && Value() &&
#error_info const & Error() const
#std::error_code Code() const noexcept
#void LogError() const noexcept