ThreadSchedule 1.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::expected< void, E > Class Template Reference
Inheritance diagram for threadschedule::expected< void, E >:
[legend]
Collaboration diagram for threadschedule::expected< void, E >:
[legend]

Public Types

using value_type = void
using error_type = E
using unexpected_type = unexpected<E>

Public Member Functions

constexpr expected (expected const &other)=default
constexpr expected (expected &&other)=default
template<typename... Args>
constexpr expected (unexpect_t, Args &&... args)
constexpr expected (unexpected< E > const &ue)
constexpr expected (unexpected< E > &&ue)
constexpr auto operator= (expected const &other) -> expected &=default
constexpr auto operator= (expected &&other) -> expected &=default
constexpr auto operator= (unexpected< E > const &ue) -> expected &
constexpr auto operator= (unexpected< E > &&ue) -> expected &
constexpr operator bool () const noexcept
constexpr auto has_value () const noexcept -> bool
constexpr void value () const
constexpr auto error () const &noexcept -> E const &
constexpr auto error () &noexcept -> E &
constexpr auto error () const &&noexcept -> E const &&
constexpr auto error () &&noexcept -> E &&
constexpr void emplace ()
constexpr void swap (expected &other) noexcept(std::is_nothrow_move_constructible_v< E > &&std::is_nothrow_swappable_v< E >)
template<typename F>
constexpr auto and_then (F &&f) &
template<typename F>
constexpr auto and_then (F &&f) const &
template<typename F>
constexpr auto and_then (F &&f) &&
template<typename F>
constexpr auto and_then (F &&f) const &&
template<typename F>
constexpr auto or_else (F &&f) &
template<typename F>
constexpr auto or_else (F &&f) const &
template<typename F>
constexpr auto or_else (F &&f) &&
template<typename F>
constexpr auto or_else (F &&f) const &&
template<typename F>
constexpr auto transform (F &&f) &
template<typename F>
constexpr auto transform (F &&f) const &
template<typename F>
constexpr auto transform (F &&f) &&
template<typename F>
constexpr auto transform (F &&f) const &&
template<typename F>
constexpr auto transform_error (F &&f) &
template<typename F>
constexpr auto transform_error (F &&f) const &
template<typename F>
constexpr auto transform_error (F &&f) &&
template<typename F>
constexpr auto transform_error (F &&f) const &&
constexpr auto operator-> () const noexcept -> void const *
constexpr auto operator* () const &noexcept -> void const &
constexpr auto value_or (U &&default_value) const &-> void

Friends

template<typename E2>
constexpr friend auto operator== (expected const &lhs, expected< void, E2 > const &rhs) -> bool
template<typename E2>
constexpr friend auto operator!= (expected const &lhs, expected< void, E2 > const &rhs) -> bool
template<typename E2>
constexpr friend auto operator== (expected const &lhs, unexpected< E2 > const &rhs) -> bool
template<typename E2>
constexpr friend auto operator== (unexpected< E2 > const &lhs, expected const &rhs) -> bool
template<typename E2>
constexpr friend auto operator!= (expected const &lhs, unexpected< E2 > const &rhs) -> bool
template<typename E2>
constexpr friend auto operator!= (unexpected< E2 > const &lhs, expected const &rhs) -> bool

Detailed Description

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

Definition at line 636 of file expected.hpp.

Member Typedef Documentation

◆ error_type

template<typename E>
using threadschedule::expected< void, E >::error_type = E

Definition at line 640 of file expected.hpp.

◆ unexpected_type

template<typename E>
using threadschedule::expected< void, E >::unexpected_type = unexpected<E>

Definition at line 641 of file expected.hpp.

◆ value_type

template<typename E>
using threadschedule::expected< void, E >::value_type = void

Definition at line 639 of file expected.hpp.

Constructor & Destructor Documentation

◆ expected() [1/4]

template<typename E>
threadschedule::expected< void, E >::expected ( )
inlineconstexpr

Definition at line 643 of file expected.hpp.

◆ expected() [2/4]

template<typename E>
template<typename... Args>
threadschedule::expected< void, E >::expected ( unexpect_t ,
Args &&... args )
inlineexplicitconstexpr

Definition at line 651 of file expected.hpp.

◆ expected() [3/4]

template<typename E>
threadschedule::expected< void, E >::expected ( unexpected< E > const & ue)
inlineconstexpr

Definition at line 656 of file expected.hpp.

◆ expected() [4/4]

template<typename E>
threadschedule::expected< void, E >::expected ( unexpected< E > && ue)
inlineconstexpr

Definition at line 660 of file expected.hpp.

◆ ~expected()

threadschedule::expected< void, E >::~expected ( )
inline

Definition at line 268 of file expected.hpp.

Member Function Documentation

◆ and_then() [1/4]

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

Definition at line 743 of file expected.hpp.

◆ and_then() [2/4]

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

Definition at line 761 of file expected.hpp.

◆ and_then() [3/4]

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

Definition at line 752 of file expected.hpp.

◆ and_then() [4/4]

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

Definition at line 770 of file expected.hpp.

◆ emplace()

template<typename E>
void threadschedule::expected< void, E >::emplace ( )
inlineconstexpr

Definition at line 717 of file expected.hpp.

◆ error() [1/4]

template<typename E>
auto threadschedule::expected< void, E >::error ( ) && -> E&&
inlineconstexprnoexcept

Definition at line 712 of file expected.hpp.

◆ error() [2/4]

template<typename E>
auto threadschedule::expected< void, E >::error ( ) & -> E&
inlineconstexprnoexcept

Definition at line 702 of file expected.hpp.

◆ error() [3/4]

template<typename E>
auto threadschedule::expected< void, E >::error ( ) const && -> E const&&
inlinenodiscardconstexprnoexcept

Definition at line 707 of file expected.hpp.

◆ error() [4/4]

template<typename E>
auto threadschedule::expected< void, E >::error ( ) const & -> E const&
inlinenodiscardconstexprnoexcept

Definition at line 697 of file expected.hpp.

◆ has_value()

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

Definition at line 686 of file expected.hpp.

◆ operator bool()

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

Definition at line 681 of file expected.hpp.

◆ operator*()

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

Definition at line 287 of file expected.hpp.

◆ operator->()

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

Definition at line 277 of file expected.hpp.

◆ operator=() [1/2]

template<typename E>
auto threadschedule::expected< void, E >::operator= ( unexpected< E > && ue) -> expected&
inlineconstexpr

Definition at line 674 of file expected.hpp.

◆ operator=() [2/2]

template<typename E>
auto threadschedule::expected< void, E >::operator= ( unexpected< E > const & ue) -> expected&
inlineconstexpr

Definition at line 667 of file expected.hpp.

◆ or_else() [1/4]

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

Definition at line 779 of file expected.hpp.

◆ or_else() [2/4]

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

Definition at line 797 of file expected.hpp.

◆ or_else() [3/4]

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

Definition at line 788 of file expected.hpp.

◆ or_else() [4/4]

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

Definition at line 806 of file expected.hpp.

◆ swap()

template<typename E>
void threadschedule::expected< void, E >::swap ( expected< void, E > & other)
inlineconstexprnoexcept

Definition at line 722 of file expected.hpp.

◆ transform() [1/4]

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

Definition at line 815 of file expected.hpp.

◆ transform() [2/4]

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

Definition at line 833 of file expected.hpp.

◆ transform() [3/4]

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

Definition at line 824 of file expected.hpp.

◆ transform() [4/4]

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

Definition at line 842 of file expected.hpp.

◆ transform_error() [1/4]

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

Definition at line 851 of file expected.hpp.

◆ transform_error() [2/4]

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

Definition at line 869 of file expected.hpp.

◆ transform_error() [3/4]

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

Definition at line 860 of file expected.hpp.

◆ transform_error() [4/4]

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

Definition at line 878 of file expected.hpp.

◆ value()

template<typename E>
void threadschedule::expected< void, E >::value ( ) const
inlineconstexpr

Definition at line 691 of file expected.hpp.

◆ value_or()

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

Definition at line 366 of file expected.hpp.

◆ operator!= [1/3]

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

Definition at line 898 of file expected.hpp.

◆ operator!= [2/3]

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

Definition at line 916 of file expected.hpp.

◆ operator!= [3/3]

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

Definition at line 922 of file expected.hpp.

◆ operator== [1/3]

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

Definition at line 888 of file expected.hpp.

◆ operator== [2/3]

template<typename E>
template<typename E2>
friend auto operator== ( expected< void, E > const & lhs,
unexpected< E2 > const & rhs ) -> bool
friend

Definition at line 904 of file expected.hpp.

◆ operator== [3/3]

template<typename E>
template<typename E2>
friend auto operator== ( unexpected< E2 > const & lhs,
expected< void, E > const & rhs ) -> bool
friend

Definition at line 910 of file expected.hpp.


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