Returns true if the Result is Ok
Class ResultData<OkType, void>
#include <Result.hpp>
template<class OkType>classResultData{ ... }
No description provided
Examples0
Public static methods0
Public member functions15
boolisOk()const
true if the Result is Ok
boolisErr()const
Returns true if the Result is Err
true if the Result is Err
OkType&&unwrap()
Unwraps the Ok value from the Result
the Ok value
OkType&unwrap()
Unwraps the Ok value from the Result
the Ok value
const OkTypeconst&unwrap()const
Unwraps the Ok value from the Result
the Ok value
voidunwrapErr()
Unwraps the Err value from the Result
the Err value
geode::Result<OkType&,void>asRef()
Returns a Result with references to the underlying values
a Result with references to the underlying values
geode::Result<const OkTypeconst&,void>asConst()const
Returns a Result with const references to the underlying values
a Result with const references to the underlying values
OkTypeunwrapOrDefault()
Unwraps the Ok value from the Result, default constructing if unavailable
the Ok value if available, otherwise a default constructed Ok value
OkTypeunwrapOrDefault()const
Unwraps the Ok value from the Result, default constructing if unavailable
the Ok value if available, otherwise a default constructed Ok value
OkTypeunwrapOrElse(std::invocable auto&&operation)
No description provided
OkTypeunwrapOrElse(std::invocable auto&&operation)const
No description provided
geode::Result<std::remove_reference_t<OkType>,void>copied()const
Returns a Result with a copied Ok value
a Result with a copied Ok value
Fields0
Protected member functions8
template<class ClassType>voidResultData<type-parameter-0-0, void>(,)
No description provided
voidResultData<type-parameter-0-0, void>()
No description provided
geode::impl::OkContainer<OkType>asOk()
No description provided
geode::impl::OkContainer<OkType>asOk()const
No description provided
geode::impl::OkContainer<OkType&>asOk()
No description provided
geode::impl::OkContainer<OkType&>asOk()const
No description provided
geode::impl::ErrContainer<void>asErr()const
No description provided
voidinspectInternal()const
No description provided
Protected fields1
;
No description provided