GCC Middle and Back End API Reference
json::result< ValueType, ErrorType > Struct Template Reference

#include <json-parsing.h>

Public Member Functions

 result (ValueType val)
 
 result (ErrorType err)
 

Data Fields

ValueType m_val
 
ErrorType m_err
 

Detailed Description

template<typename ValueType, typename ErrorType>
struct json::result< ValueType, ErrorType >
Class for the result of an operation: either a value or an error
(or both null for the case of "successful nullptr").
The types must be default-constructible.   

Constructor & Destructor Documentation

◆ result() [1/2]

template<typename ValueType , typename ErrorType >
json::result< ValueType, ErrorType >::result ( ValueType val)
inline

◆ result() [2/2]

template<typename ValueType , typename ErrorType >
json::result< ValueType, ErrorType >::result ( ErrorType err)
inline

Field Documentation

◆ m_err

template<typename ValueType , typename ErrorType >
ErrorType json::result< ValueType, ErrorType >::m_err

◆ m_val

template<typename ValueType , typename ErrorType >
ValueType json::result< ValueType, ErrorType >::m_val

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