MySQL 9.0.0
Source Code Documentation
ReturnValueOrError< VALUE_TYPE > Struct Template Reference

Utility to allow returning values from functions which can fail (until we have std::optional). More...

#include <template_utils.h>

Public Attributes

VALUE_TYPE value
 Value returned from function in the normal case. More...
 
bool error
 True if an error occurred. More...
 

Detailed Description

template<class VALUE_TYPE>
struct ReturnValueOrError< VALUE_TYPE >

Utility to allow returning values from functions which can fail (until we have std::optional).

Member Data Documentation

◆ error

template<class VALUE_TYPE >
bool ReturnValueOrError< VALUE_TYPE >::error

True if an error occurred.

◆ value

template<class VALUE_TYPE >
VALUE_TYPE ReturnValueOrError< VALUE_TYPE >::value

Value returned from function in the normal case.


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