#include <cstddef>
#include <cassert>
#include <exception>
#include <functional>
#include <initializer_list>
#include <memory>
#include <new>
#include <system_error>
#include <type_traits>
#include <utility>
Go to the source code of this file.
Classes | |
struct | std::hash< nonstd::expected< T &, E > > |
struct | std::hash< nonstd::expected< T, E > > |
struct | std::hash< nonstd::expected< void, E > > |
struct | nonstd::detail::in_place_index_tag< K > |
struct | nonstd::in_place_t |
struct | nonstd::detail::in_place_type_tag< T > |
Namespaces | |
nonstd | |
nonstd::detail | |
std | |
Functions | |
template<std::size_t K> | |
in_place_t | nonstd::in_place (detail::in_place_index_tag< K >=detail::in_place_index_tag< K >()) |
template<class T > | |
in_place_t | nonstd::in_place (detail::in_place_type_tag< T >=detail::in_place_type_tag< T >()) |
template<std::size_t K> | |
in_place_t | nonstd::in_place_index (detail::in_place_index_tag< K >=detail::in_place_index_tag< K >()) |
template<class T > | |
in_place_t | nonstd::in_place_type (detail::in_place_type_tag< T >=detail::in_place_type_tag< T >()) |
nsel_DISABLE_MSVC_WARNINGS (26409) namespace nonstd | |
#define expected_HAVE_TWEAK_HEADER 0 |
Definition at line 38 of file expected.hpp.
#define expected_lite_MAJOR 0 |
Definition at line 15 of file expected.hpp.
#define expected_lite_MINOR 8 |
Definition at line 16 of file expected.hpp.
#define expected_lite_PATCH 0 |
Definition at line 17 of file expected.hpp.
#define expected_lite_VERSION expected_STRINGIFY(expected_lite_MAJOR) "." expected_STRINGIFY(expected_lite_MINOR) "." expected_STRINGIFY(expected_lite_PATCH) |
Definition at line 19 of file expected.hpp.
#define expected_STRINGIFY | ( | x | ) | expected_STRINGIFY_( x ) |
Definition at line 21 of file expected.hpp.
#define expected_STRINGIFY_ | ( | x | ) | #x |
Definition at line 22 of file expected.hpp.
#define nonstd_lite_HAVE_IN_PLACE_TYPES 1 |
Definition at line 140 of file expected.hpp.
#define nonstd_lite_in_place | ( | T | ) | nonstd::in_place_type<T> |
Definition at line 214 of file expected.hpp.
#define nonstd_lite_in_place_index | ( | K | ) | nonstd::in_place_index<K> |
Definition at line 216 of file expected.hpp.
#define nonstd_lite_in_place_index_t | ( | K | ) | nonstd::in_place_t(&)( nonstd::detail::in_place_index_tag<K> ) |
Definition at line 212 of file expected.hpp.
#define nonstd_lite_in_place_t | ( | T | ) | nonstd::in_place_t(&)( nonstd::detail::in_place_type_tag<T> ) |
Definition at line 210 of file expected.hpp.
#define nonstd_lite_in_place_type | ( | T | ) | nonstd::in_place_type<T> |
Definition at line 215 of file expected.hpp.
#define nonstd_lite_in_place_type_t | ( | T | ) | nonstd::in_place_t(&)( nonstd::detail::in_place_type_tag<T> ) |
Definition at line 211 of file expected.hpp.
#define nsel_COMPILER_CLANG_VERSION 0 |
Definition at line 324 of file expected.hpp.
#define nsel_COMPILER_GNUC_VERSION 0 |
Definition at line 330 of file expected.hpp.
#define nsel_COMPILER_MSVC_VER 0 |
Definition at line 315 of file expected.hpp.
#define nsel_COMPILER_MSVC_VERSION 0 |
Definition at line 316 of file expected.hpp.
#define nsel_COMPILER_VERSION | ( | major, | |
minor, | |||
patch | |||
) | ( 10 * ( 10 * (major) + (minor) ) + (patch) ) |
Definition at line 319 of file expected.hpp.
#define nsel_CONFIG_NO_EXCEPTIONS 1 |
Definition at line 93 of file expected.hpp.
#define nsel_CONFIG_NO_EXCEPTIONS_SEH ( nsel_CONFIG_NO_EXCEPTIONS && _MSC_VER ) |
Definition at line 100 of file expected.hpp.
#define nsel_CONFIG_SELECT_EXPECTED ( nsel_HAVE_STD_EXPECTED ? nsel_EXPECTED_STD : nsel_EXPECTED_NONSTD ) |
Definition at line 45 of file expected.hpp.
#define nsel_constexpr /*constexpr*/ |
Definition at line 282 of file expected.hpp.
#define nsel_constexpr14 /*constexpr*/ |
Definition at line 288 of file expected.hpp.
#define nsel_CPLUSPLUS __cplusplus |
Definition at line 110 of file expected.hpp.
#define nsel_CPP11_OR_GREATER ( nsel_CPLUSPLUS >= 201103L ) |
Definition at line 115 of file expected.hpp.
#define nsel_CPP14_OR_GREATER ( nsel_CPLUSPLUS >= 201402L ) |
Definition at line 116 of file expected.hpp.
#define nsel_CPP17_000 (nsel_CPP17_OR_GREATER) |
#define nsel_CPP17_OR_GREATER ( nsel_CPLUSPLUS >= 201703L ) |
Definition at line 117 of file expected.hpp.
#define nsel_CPP20_OR_GREATER ( nsel_CPLUSPLUS >= 202002L ) |
Definition at line 118 of file expected.hpp.
#define nsel_CPP23_OR_GREATER ( nsel_CPLUSPLUS >= 202300L ) |
Definition at line 119 of file expected.hpp.
#define nsel_CPP98_OR_GREATER ( nsel_CPLUSPLUS >= 199711L ) |
Definition at line 114 of file expected.hpp.
#define nsel_deprecated | ( | msg | ) | /*[[deprecated]]*/ |
#define nsel_DISABLE_MSVC_WARNINGS | ( | codes | ) |
Definition at line 361 of file expected.hpp.
#define nsel_EXPECTED_DEFAULT 0 |
Definition at line 26 of file expected.hpp.
#define nsel_EXPECTED_NONSTD 1 |
Definition at line 27 of file expected.hpp.
#define nsel_EXPECTED_STD 2 |
Definition at line 28 of file expected.hpp.
#define nsel_HAS_CPP0X 0 |
#define nsel_HAVE_DEPRECATED nsel_CPP17_000 |
#define nsel_HAVE_STD_EXPECTED 0 |
Definition at line 130 of file expected.hpp.
#define nsel_inline17 /*inline*/ |
Definition at line 294 of file expected.hpp.
#define nsel_P0323R 7 |
Definition at line 66 of file expected.hpp.
#define nsel_P2505R 5 |
Definition at line 81 of file expected.hpp.
#define nsel_REQUIRES_0 | ( | ... | ) | template< bool B = (__VA_ARGS__), typename std::enable_if<B, int>::type = 0 > |
Definition at line 338 of file expected.hpp.
#define nsel_REQUIRES_A | ( | ... | ) | , typename std::enable_if< (__VA_ARGS__), void*>::type = nullptr |
Definition at line 347 of file expected.hpp.
#define nsel_REQUIRES_R | ( | R, | |
... | |||
) | typename std::enable_if< (__VA_ARGS__), R>::type |
Definition at line 344 of file expected.hpp.
#define nsel_REQUIRES_T | ( | ... | ) | , typename std::enable_if< (__VA_ARGS__), int >::type = 0 |
Definition at line 341 of file expected.hpp.
#define nsel_RESTORE_MSVC_WARNINGS | ( | ) |
Definition at line 375 of file expected.hpp.
#define nsel_RESTORE_WARNINGS | ( | ) |
Definition at line 374 of file expected.hpp.
#define nsel_USES_STD_EXPECTED ( (nsel_CONFIG_SELECT_EXPECTED == nsel_EXPECTED_STD) || ((nsel_CONFIG_SELECT_EXPECTED == nsel_EXPECTED_DEFAULT) && nsel_HAVE_STD_EXPECTED) ) |
Definition at line 133 of file expected.hpp.
nsel_DISABLE_MSVC_WARNINGS | ( | 26409 | ) |
discriminated union to hold value or 'error'.
discriminated union to hold only 'error'.
x.x.5 Unexpected object type; unexpected_type; C++17 and later can also use aliased type unexpected.
class unexpected_type, std::exception_ptr specialization (P0323R2)
x.x.4, Unexpected equality operators
x.x.5 Specialized algorithms
x.x.6, x.x.7 expected access error
x.x.7 bad_expected_access<void>: expected access error
x.x.6 bad_expected_access: expected access error
x.x.8 unexpect tag, in_place_unexpected tag: construct an error
class error_traits
class expected
class expected, void specialization
x.x.x Specialized algorithms
Definition at line 381 of file expected.hpp.