ThreadSchedule 3.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
expected.hpp File Reference

Stable library-owned expected implementation for ThreadSchedule APIs. More...

#include <exception>
#include <functional>
#include <system_error>
#include <type_traits>
#include <utility>
#include <variant>
Include dependency graph for expected.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  threadschedule::unexpect_t
 
class  threadschedule::unexpected< E >
 
class  threadschedule::expected< T, E >
 
class  threadschedule::expected< void, E >
 

Namespaces

namespace  threadschedule
 
namespace  threadschedule::detail
 Aggregates multiple thread_registry_backend instances into a single queryable view.
 

Macros

#define THREADSCHEDULE_HAS_STD_EXPECTED   0
 
#define THREADSCHEDULE_EXPECTED_THROW(ex)   ::std::terminate()
 

Functions

template<typename T , typename E >
void threadschedule::swap (expected< T, E > &lhs, expected< T, E > &rhs) noexcept(noexcept(lhs.swap(rhs)))
 

Variables

constexpr unexpect_t threadschedule::unexpect {}
 

Detailed Description

Stable library-owned expected implementation for ThreadSchedule APIs.

Definition in file expected.hpp.

Macro Definition Documentation

◆ THREADSCHEDULE_EXPECTED_THROW

#define THREADSCHEDULE_EXPECTED_THROW (   ex)    ::std::terminate()

Definition at line 34 of file expected.hpp.

◆ THREADSCHEDULE_HAS_STD_EXPECTED

#define THREADSCHEDULE_HAS_STD_EXPECTED   0

Definition at line 28 of file expected.hpp.