EyeAI
Loading...
Searching...
No Matches
Errors.hpp File Reference
#include <format>
#include <string>
#include <tl/expected.hpp>
#include <variant>
Include dependency graph for Errors.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Overloads< Ts >
 
struct  CombinedError< Ts >
 Rust Enum style errors as values helper class, see Error concept. More...
 

Namespaces

namespace  tl
 

Macros

#define COMBINED_ERROR(name, ...)
 

Functions

template<typename... Args>
unexpected< std::string > tl::unexpected_fmt (const std::format_string< Args... > fmt, Args &&... args)
 same as tl::unexpected, but with formatted error using std::format
 
template<typename... Ts>
 Overloads (Ts...) -> Overloads< Ts... >
 

Macro Definition Documentation

◆ COMBINED_ERROR

#define COMBINED_ERROR ( name,
... )
Value:
struct [[nodiscard]] name : public CombinedError<__VA_ARGS__> { \
using CombinedError::CombinedError; \
using CombinedError::operator=; \
using CombinedError::operator==; \
using CombinedError::operator!=; \
using CombinedError::swap; \
}
Rust Enum style errors as values helper class, see Error concept.
Definition Errors.hpp:41
auto match(Fs &&... fs) const &
Match on every underlying Error variant.
Definition Errors.hpp:55
std::string to_string() const
Formats every underlying Error variant.
Definition Errors.hpp:47

Function Documentation

◆ Overloads()

template<typename... Ts>
Overloads ( Ts... ) -> Overloads< Ts... >