DotNameLib
Loading...
Searching...
No Matches
dotnamecpp::utils::Result< void, E > Class Template Reference

#include <UtilsError.hpp>

Inheritance diagram for dotnamecpp::utils::Result< void, E >:
Collaboration diagram for dotnamecpp::utils::Result< void, E >:

Public Member Functions

 Result ()
 Result (const E &error)
 Result (E &&error)
bool hasValue () const noexcept
 operator bool () const noexcept
E & error () &
const E & error () const &
void & value () &
void * operator-> ()
void & operator* () &
void valueOr (U &&defaultValue) const &

Constructor & Destructor Documentation

◆ Result() [1/3]

template<typename E>
dotnamecpp::utils::Result< void, E >::Result ( )
inline

◆ Result() [2/3]

template<typename E>
dotnamecpp::utils::Result< void, E >::Result ( const E & error)
inline
Here is the call graph for this function:

◆ Result() [3/3]

template<typename E>
dotnamecpp::utils::Result< void, E >::Result ( E && error)
inline
Here is the call graph for this function:

Member Function Documentation

◆ error() [1/2]

template<typename E>
E & dotnamecpp::utils::Result< void, E >::error ( ) &
inlinenodiscard
Here is the caller graph for this function:

◆ error() [2/2]

template<typename E>
const E & dotnamecpp::utils::Result< void, E >::error ( ) const &
inlinenodiscard

◆ hasValue()

template<typename E>
bool dotnamecpp::utils::Result< void, E >::hasValue ( ) const
inlinenodiscardnoexcept

◆ operator bool()

template<typename E>
dotnamecpp::utils::Result< void, E >::operator bool ( ) const
inlineexplicitnodiscardnoexcept

◆ operator*()

void & dotnamecpp::utils::Result< void, E >::operator* ( ) &
inlinenodiscard

◆ operator->()

void * dotnamecpp::utils::Result< void, E >::operator-> ( )
inlinenodiscard

◆ value()

void & dotnamecpp::utils::Result< void, E >::value ( ) &
inlinenodiscard

◆ valueOr()

void dotnamecpp::utils::Result< void, E >::valueOr ( U && defaultValue) const &
inlinenodiscard

The documentation for this class was generated from the following file: