forked from boostorg/variant2
Update expected.md
This commit is contained in:
@ -102,12 +102,12 @@
|
|||||||
unexpected_<E...> unexpected() const;
|
unexpected_<E...> unexpected() const;
|
||||||
|
|
||||||
template<class E2> constexpr E2 error() const noexcept;
|
template<class E2> constexpr E2 error() const noexcept;
|
||||||
constexpr mp_first<expected> error() const noexcept;
|
constexpr /*see below*/ error() const noexcept;
|
||||||
|
|
||||||
// error mapping
|
// error mapping
|
||||||
|
|
||||||
template<class F> /*see below*/ remap_errors( F&& f ) const;
|
template<class F> /*see below*/ remap_errors( F&& f ) const;
|
||||||
expected<T, std::error_code> remap_errors();
|
expected<T, std::error_code> remap_errors() const;
|
||||||
|
|
||||||
// then
|
// then
|
||||||
|
|
||||||
@ -123,13 +123,13 @@
|
|||||||
template<class T, class... E>
|
template<class T, class... E>
|
||||||
inline void swap( expected<T, E...>& x1, expected<T, E...>& x2 ) noexcept( /*see below*/ );
|
inline void swap( expected<T, E...>& x1, expected<T, E...>& x2 ) noexcept( /*see below*/ );
|
||||||
|
|
||||||
} // namespace variant2
|
|
||||||
} // namespace boost
|
|
||||||
|
|
||||||
// is_expected
|
// is_expected
|
||||||
|
|
||||||
template<class T> struct is_expected;
|
template<class T> struct is_expected;
|
||||||
|
|
||||||
|
} // namespace variant2
|
||||||
|
} // namespace boost
|
||||||
|
|
||||||
## Reference
|
## Reference
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Reference in New Issue
Block a user