5 #ifndef VCCC_EXPECTED_BAD_EXPECTED_ACCESS_HPP_
6 #define VCCC_EXPECTED_BAD_EXPECTED_ACCESS_HPP_
17 class bad_expected_access;
22 const char*
what() const noexcept
override {
23 return "vccc::bad_expected_access";
38 : error_(
std::move(
e)) {}
40 const E&
error() const& noexcept {
return error_; }
41 E&
error() & noexcept {
return error_; }
42 const E&&
error() const&& noexcept {
return std::move(error_); }
43 E&&
error() && noexcept {
return std::move(error_); }
bad_expected_access() noexcept=default
const char * what() const noexcept override
Definition: bad_expected_access.hpp:22
Definition: bad_expected_access.hpp:35
bad_expected_access(E e)
Definition: bad_expected_access.hpp:37
const E && error() const &&noexcept
Definition: bad_expected_access.hpp:42
E && error() &&noexcept
Definition: bad_expected_access.hpp:43
E & error() &noexcept
Definition: bad_expected_access.hpp:41
const E & error() const &noexcept
Definition: bad_expected_access.hpp:40
constexpr T e
the mathematical constant
Definition: constants.hpp:37
Definition: matrix.hpp:495
Definition: directory.h:12