similar as std::optional, but with error info (not 100% same, add delta if needed).
More...
#include <gempyre_utils.h>
|
constexpr static auto | make_error (const E &e) |
| helper to make error value More...
|
|
constexpr static auto | make_error (E &&e) |
| helper to make error value More...
|
|
constexpr static auto | make_error () |
| helper to make error value, valid only if error has a default constructor More...
|
|
constexpr static auto | ok () |
| helper to make valid value, valid only if result has a default constructor More...
|
|
template<typename R, typename E = std::string>
struct GempyreUtils::Result< R, E >
similar as std::optional, but with error info (not 100% same, add delta if needed).
◆ Result() [1/4]
template<typename R , typename E = std::string>
◆ Result() [2/4]
template<typename R , typename E = std::string>
◆ Result() [3/4]
template<typename R , typename E = std::string>
◆ Result() [4/4]
template<typename R , typename E = std::string>
◆ make_error() [1/3]
template<typename R , typename E = std::string>
helper to make error value, valid only if error has a default constructor
- Returns
◆ make_error() [2/3]
template<typename R , typename E = std::string>
helper to make error value
- Parameters
-
- Returns
◆ make_error() [3/3]
template<typename R , typename E = std::string>
helper to make error value
- Parameters
-
- Returns
◆ ok()
template<typename R , typename E = std::string>
helper to make valid value, valid only if result has a default constructor
- Returns
◆ operator=() [1/4]
template<typename R , typename E = std::string>
◆ operator=() [2/4]
template<typename R , typename E = std::string>
◆ operator=() [3/4]
template<typename R , typename E = std::string>
◆ operator=() [4/4]
template<typename R , typename E = std::string>
The documentation for this struct was generated from the following file: