ThreadSchedule 4.1.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::expected< const volatile void, E > Class Template Reference

#include <expected.hpp>

Inheritance diagram for threadschedule::expected< const volatile void, E >:
[legend]
Collaboration diagram for threadschedule::expected< const volatile void, E >:
[legend]

Public Types

using value_type
using error_type
using unexpected_type
using rebind
Public Types inherited from threadschedule::detail::expected_void< const volatile void, E >
using value_type
using error_type
using unexpected_type
using rebind

Public Member Functions

constexpr auto operator= (unexpected< G > const &error) -> derived_type &
constexpr auto operator= (unexpected< G > &&error) -> derived_type &
 ~expected ()=default
constexpr auto has_value () const noexcept -> bool
constexpr auto has_error () const noexcept -> bool
constexpr operator bool () const noexcept
constexpr auto operator-> () noexcept THREADSCHEDULE_LIFETIMEBOUND -> const volatile void *
constexpr auto operator* () &noexcept THREADSCHEDULE_LIFETIMEBOUND -> const volatile void &
constexpr auto value () &THREADSCHEDULE_LIFETIMEBOUND -> const volatile void &
constexpr auto error () &noexcept THREADSCHEDULE_LIFETIMEBOUND -> E &
constexpr auto value_or (U &&fallback) const &-> const volatile void
constexpr auto error_or (G &&fallback) const &-> E
constexpr auto emplace (Args &&... args) noexcept -> const volatile void &
constexpr void swap (expected &other) noexcept(std::is_nothrow_move_constructible_v< const volatile void > &&std::is_nothrow_move_constructible_v< E > &&std::is_nothrow_swappable_v< const volatile void > &&std::is_nothrow_swappable_v< E >)
constexpr auto and_then (F &&f) &
constexpr auto or_else (F &&f) &
constexpr auto transform (F &&f) &
constexpr auto transform_error (F &&f) &
Public Member Functions inherited from threadschedule::detail::expected_void< const volatile void, E >
constexpr expected_void () noexcept=default
constexpr expected_void (std::in_place_t) noexcept
constexpr expected_void (expected< U, G > const &source)
constexpr expected_void (expected< U, G > const &source)
constexpr expected_void (expected< U, G > &&source)
constexpr expected_void (expected< U, G > &&source)
constexpr expected_void (unexpect_t, Args &&... args)
constexpr expected_void (unexpected< G > const &source)
constexpr expected_void (unexpected< G > const &source)
constexpr expected_void (unexpected< G > &&source)
constexpr expected_void (unexpected< G > &&source)
constexpr expected_void (unexpect_t, std::initializer_list< U > list, Args &&... args)
constexpr auto operator= (unexpected< G > const &error) -> derived_type &
constexpr auto operator= (unexpected< G > &&error) -> derived_type &
constexpr auto has_value () const noexcept -> bool
constexpr auto has_error () const noexcept -> bool
constexpr operator bool () const noexcept
constexpr void operator* () const noexcept
constexpr void value () const &
constexpr void value () &&
constexpr auto error () &noexcept THREADSCHEDULE_LIFETIMEBOUND -> E &
constexpr auto error () const &noexcept THREADSCHEDULE_LIFETIMEBOUND -> E const &
constexpr auto error () &&noexcept THREADSCHEDULE_LIFETIMEBOUND -> E &&
constexpr auto error () const &&noexcept THREADSCHEDULE_LIFETIMEBOUND -> E const &&
constexpr auto error_or (G &&fallback) const &-> E
constexpr auto error_or (G &&fallback) &&-> E
constexpr void emplace () noexcept
constexpr void swap (derived_type &other) noexcept(std::is_nothrow_move_constructible_v< E > &&std::is_nothrow_swappable_v< E >)
constexpr auto and_then (F &&f) &
constexpr auto and_then (F &&f) const &
constexpr auto and_then (F &&f) &&
constexpr auto and_then (F &&f) const &&
constexpr auto or_else (F &&f) &
constexpr auto or_else (F &&f) const &
constexpr auto or_else (F &&f) &&
constexpr auto or_else (F &&f) const &&
constexpr auto transform (F &&f) &
constexpr auto transform (F &&f) const &
constexpr auto transform (F &&f) &&
constexpr auto transform (F &&f) const &&
constexpr auto transform_error (F &&f) &
constexpr auto transform_error (F &&f) const &
constexpr auto transform_error (F &&f) &&
constexpr auto transform_error (F &&f) const &&

Friends

class expected
class detail::expected_void
constexpr auto operator== (expected const &lhs, expected< T2, E2 > const &rhs) -> bool
constexpr auto operator!= (expected const &lhs, expected< T2, E2 > const &rhs) -> bool

Detailed Description

template<typename E>
class threadschedule::expected< const volatile void, E >

Definition at line 1787 of file expected.hpp.

Member Typedef Documentation

◆ error_type

using threadschedule::expected< const volatile void, E >::error_type

Definition at line 790 of file expected.hpp.

◆ rebind

using threadschedule::expected< const volatile void, E >::rebind

Definition at line 793 of file expected.hpp.

◆ unexpected_type

using threadschedule::expected< const volatile void, E >::unexpected_type

Definition at line 791 of file expected.hpp.

◆ value_type

using threadschedule::expected< const volatile void, E >::value_type

Definition at line 789 of file expected.hpp.

Constructor & Destructor Documentation

◆ ~expected()

threadschedule::expected< const volatile void, E >::~expected ( )
default

Member Function Documentation

◆ and_then()

auto threadschedule::expected< const volatile void, E >::and_then ( F && f) &
inlineconstexpr

Definition at line 1081 of file expected.hpp.

◆ emplace()

auto threadschedule::expected< const volatile void, E >::emplace ( Args &&... args) ->const volatile void &
inlineconstexprnoexcept

Definition at line 1060 of file expected.hpp.

◆ error()

auto threadschedule::expected< const volatile void, E >::error ( ) &->E &
inlineconstexprnoexcept

Definition at line 1006 of file expected.hpp.

◆ error_or()

auto threadschedule::expected< const volatile void, E >::error_or ( G && fallback) const &->E
inlineconstexpr

Definition at line 1042 of file expected.hpp.

◆ has_error()

auto threadschedule::expected< const volatile void, E >::has_error ( ) const->bool
inlinenodiscardconstexprnoexcept

Definition at line 933 of file expected.hpp.

◆ has_value()

auto threadschedule::expected< const volatile void, E >::has_value ( ) const->bool
inlinenodiscardconstexprnoexcept

Definition at line 928 of file expected.hpp.

◆ operator bool()

threadschedule::expected< const volatile void, E >::operator bool ( ) const
inlineexplicitconstexprnoexcept

Definition at line 938 of file expected.hpp.

◆ operator*()

auto threadschedule::expected< const volatile void, E >::operator* ( ) &->T &
inlineconstexprnoexcept

Definition at line 953 of file expected.hpp.

◆ operator->()

auto threadschedule::expected< const volatile void, E >::operator-> ( ) ->T *
inlineconstexprnoexcept

Definition at line 943 of file expected.hpp.

◆ operator=() [1/2]

template<typename E>
auto threadschedule::detail::expected_void< const volatile void, E >::operator= ( unexpected< G > && error) ->derived_type &
inlineconstexpr

Definition at line 1402 of file expected.hpp.

◆ operator=() [2/2]

template<typename E>
auto threadschedule::detail::expected_void< const volatile void, E >::operator= ( unexpected< G > const & error) ->derived_type &
inlineconstexpr

Definition at line 1395 of file expected.hpp.

◆ or_else()

auto threadschedule::expected< const volatile void, E >::or_else ( F && f) &
inlineconstexpr

Definition at line 1105 of file expected.hpp.

◆ swap()

void threadschedule::expected< const volatile void, E >::swap ( expected< const volatile void, E > & other)
inlineconstexprnoexcept

Definition at line 1073 of file expected.hpp.

◆ transform()

auto threadschedule::expected< const volatile void, E >::transform ( F && f) &
inlineconstexpr

Definition at line 1129 of file expected.hpp.

◆ transform_error()

auto threadschedule::expected< const volatile void, E >::transform_error ( F && f) &
inlineconstexpr

Definition at line 1153 of file expected.hpp.

◆ value()

auto threadschedule::expected< const volatile void, E >::value ( ) &->T &
inlineconstexpr

Definition at line 974 of file expected.hpp.

◆ value_or()

auto threadschedule::expected< const volatile void, E >::value_or ( U && fallback) const &->const volatile void
inlineconstexpr

Definition at line 1028 of file expected.hpp.

◆ detail::expected_void

friend class detail::expected_void
friend

Definition at line 1250 of file expected.hpp.

◆ expected

friend class expected
friend

Definition at line 1248 of file expected.hpp.

◆ operator!=

auto operator!= ( expected< const volatile void, E > const & lhs,
expected< T2, E2 > const & rhs )->bool
friend

Definition at line 1215 of file expected.hpp.

◆ operator==

auto operator== ( expected< const volatile void, E > const & lhs,
expected< T2, E2 > const & rhs )->bool
friend

Definition at line 1202 of file expected.hpp.


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