Blender V5.3
bsl::ResultPair< T, U, ExceptionT > Struct Template Reference

#include <diagnostic.hh>

Public Member Functions

pair< T, U > unwrap (NodeErrorHandler *handler)
pair< T, U > unwrap (std::optional< AstNodeException > &other_err)

Public Attributes

T first
U second
std::optional< ExceptionT > err

Detailed Description

template<typename T, typename U, typename ExceptionT = AstNodeException>
struct bsl::ResultPair< T, U, ExceptionT >

Definition at line 746 of file diagnostic.hh.

Member Function Documentation

◆ unwrap() [1/2]

template<typename T, typename U, typename ExceptionT = AstNodeException>
pair< T, U > bsl::ResultPair< T, U, ExceptionT >::unwrap ( NodeErrorHandler * handler)
inline

Definition at line 751 of file diagnostic.hh.

References err, bsl::NodeErrorHandler::error(), first, and second.

◆ unwrap() [2/2]

template<typename T, typename U, typename ExceptionT = AstNodeException>
pair< T, U > bsl::ResultPair< T, U, ExceptionT >::unwrap ( std::optional< AstNodeException > & other_err)
inline

Definition at line 758 of file diagnostic.hh.

References err, first, and second.

Member Data Documentation

◆ err

template<typename T, typename U, typename ExceptionT = AstNodeException>
std::optional<ExceptionT> bsl::ResultPair< T, U, ExceptionT >::err

Definition at line 749 of file diagnostic.hh.

Referenced by unwrap(), and unwrap().

◆ first

template<typename T, typename U, typename ExceptionT = AstNodeException>
T bsl::ResultPair< T, U, ExceptionT >::first

Definition at line 747 of file diagnostic.hh.

Referenced by unwrap(), and unwrap().

◆ second

template<typename T, typename U, typename ExceptionT = AstNodeException>
U bsl::ResultPair< T, U, ExceptionT >::second

Definition at line 748 of file diagnostic.hh.

Referenced by unwrap(), and unwrap().


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