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

#include <UtilsError.hpp>

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

Public Member Functions

 Result (const T &value)
 Result (T &&value)
 Result (const E &error)
 Result (E &&error)
bool hasValue () const noexcept
 operator bool () const noexcept
T & value () &
const T & value () const &
T && value () &&
E & error () &
const E & error () const &
E && error () &&
T * operator-> ()
const T * operator-> () const
T & operator* () &
const T & operator* () const &
T && operator* () &&
template<typename U>
valueOr (U &&defaultValue) const &
template<typename U>
valueOr (U &&defaultValue) &&

Constructor & Destructor Documentation

◆ Result() [1/4]

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

◆ Result() [2/4]

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

◆ Result() [3/4]

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

◆ Result() [4/4]

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

Member Function Documentation

◆ error() [1/3]

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

◆ error() [2/3]

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

◆ error() [3/3]

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

◆ hasValue()

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

◆ operator bool()

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

◆ operator*() [1/3]

template<typename T, typename E>
T & dotnamecpp::utils::Result< T, E >::operator* ( ) &
inlinenodiscard
Here is the call graph for this function:

◆ operator*() [2/3]

template<typename T, typename E>
T && dotnamecpp::utils::Result< T, E >::operator* ( ) &&
inlinenodiscard
Here is the call graph for this function:

◆ operator*() [3/3]

template<typename T, typename E>
const T & dotnamecpp::utils::Result< T, E >::operator* ( ) const &
inlinenodiscard
Here is the call graph for this function:

◆ operator->() [1/2]

template<typename T, typename E>
T * dotnamecpp::utils::Result< T, E >::operator-> ( )
inlinenodiscard
Here is the call graph for this function:

◆ operator->() [2/2]

template<typename T, typename E>
const T * dotnamecpp::utils::Result< T, E >::operator-> ( ) const
inlinenodiscard
Here is the call graph for this function:

◆ value() [1/3]

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

◆ value() [2/3]

template<typename T, typename E>
T && dotnamecpp::utils::Result< T, E >::value ( ) &&
inlinenodiscard

◆ value() [3/3]

template<typename T, typename E>
const T & dotnamecpp::utils::Result< T, E >::value ( ) const &
inlinenodiscard

◆ valueOr() [1/2]

template<typename T, typename E>
template<typename U>
T dotnamecpp::utils::Result< T, E >::valueOr ( U && defaultValue) &&
inlinenodiscard

◆ valueOr() [2/2]

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

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