GCC Middle and Back End API Reference
opt_wrapper< T > Class Template Reference

#include <opt-problem.h>

Inheritance diagram for opt_wrapper< T >:

Public Types

typedef T wrapped_t
 

Public Member Functions

 operator wrapped_t () const
 
wrapped_t get_result () const
 
opt_problemget_problem () const
 

Protected Member Functions

 opt_wrapper (wrapped_t result, opt_problem @endverbatim *)
 

Private Attributes

wrapped_t m_result
 

Detailed Description

template<typename T>
class opt_wrapper< T >
A base class for wrapper classes that track a success/failure value, while
optionally supporting propagating an opt_problem * describing any
failure back up the call stack.   

Member Typedef Documentation

◆ wrapped_t

template<typename T >
T opt_wrapper< T >::wrapped_t

Constructor & Destructor Documentation

◆ opt_wrapper()

template<typename T >
opt_wrapper< T >::opt_wrapper ( wrapped_t result,
opt_problem @endverbatim *  )
inlineprotected

Member Function Documentation

◆ get_problem()

◆ get_result()

template<typename T >
wrapped_t opt_wrapper< T >::get_result ( ) const
inline

◆ operator wrapped_t()

template<typename T >
opt_wrapper< T >::operator wrapped_t ( ) const
inline

Field Documentation

◆ m_result

template<typename T >
wrapped_t opt_wrapper< T >::m_result
private

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