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

#include <diagnostic.hh>

Public Member Functions

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

Public Attributes

T value
std::optional< ExceptionT > err

Detailed Description

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

Definition at line 726 of file diagnostic.hh.

Member Function Documentation

◆ unwrap() [1/2]

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

Definition at line 730 of file diagnostic.hh.

References err, bsl::NodeErrorHandler::error(), T, and value.

◆ unwrap() [2/2]

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

Definition at line 737 of file diagnostic.hh.

References err, T, and value.

Member Data Documentation

◆ err

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

Definition at line 728 of file diagnostic.hh.

Referenced by unwrap(), and unwrap().

◆ value

template<typename T, typename ExceptionT = AstNodeException>
T bsl::Result< T, ExceptionT >::value

Definition at line 727 of file diagnostic.hh.

Referenced by unwrap(), and unwrap().


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