forked from boostorg/system
Update documentation
This commit is contained in:
@ -610,9 +610,8 @@ public:
|
|||||||
template<class ErrorCodeEnum>
|
template<class ErrorCodeEnum>
|
||||||
constexpr error_code( ErrorCodeEnum e ) noexcept;
|
constexpr error_code( ErrorCodeEnum e ) noexcept;
|
||||||
|
|
||||||
template<class ErrorCodeEnum>
|
error_code( error_code const& ec,
|
||||||
error_code( ErrorCodeEnum e, boost::source_location const * loc )
|
boost::source_location const * loc ) noexcept;
|
||||||
noexcept;
|
|
||||||
|
|
||||||
error_code( std::error_code const& ec ) noexcept;
|
error_code( std::error_code const& ec ) noexcept;
|
||||||
|
|
||||||
@ -626,9 +625,8 @@ public:
|
|||||||
template<class ErrorCodeEnum>
|
template<class ErrorCodeEnum>
|
||||||
constexpr error_code & operator=( ErrorCodeEnum e ) noexcept;
|
constexpr error_code & operator=( ErrorCodeEnum e ) noexcept;
|
||||||
|
|
||||||
template<class ErrorCodeEnum>
|
void assign( error_code const& ec,
|
||||||
void assign( ErrorCodeEnum e,
|
boost::source_location const * loc ) noexcept;
|
||||||
boost::source_location const * loc ) noexcept;
|
|
||||||
|
|
||||||
constexpr void clear() noexcept;
|
constexpr void clear() noexcept;
|
||||||
|
|
||||||
@ -757,17 +755,17 @@ Ensures: :: `*this == make_error_code( e )`.
|
|||||||
Remarks: :: This constructor is only enabled when `is_error_code_enum<ErrorCodeEnum>::value` is `true`.
|
Remarks: :: This constructor is only enabled when `is_error_code_enum<ErrorCodeEnum>::value` is `true`.
|
||||||
|
|
||||||
```
|
```
|
||||||
template<class ErrorCodeEnum>
|
error_code( error_code const& ec,
|
||||||
error_code( ErrorCodeEnum e, boost::source_location const * loc ) noexcept;
|
boost::source_location const * loc ) noexcept;
|
||||||
```
|
```
|
||||||
[none]
|
[none]
|
||||||
* {blank}
|
* {blank}
|
||||||
+
|
+
|
||||||
Requires: :: `loc` points to a valid `boost::source_location` object with static storage duration.
|
Requires: :: `loc` points to a valid `boost::source_location` object with static storage duration, or is `nullptr`.
|
||||||
Ensures: :: `*this == make_error_code( e )`.
|
Ensures: :: `*this == ec`.
|
||||||
Remarks: :: This constructor is only enabled when `is_error_code_enum<ErrorCodeEnum>::value` is `true`.
|
Remarks: :: When `ec` is a default-constructed `error_code` or wraps a `std::error_code`,
|
||||||
When `make_error_code( e )` is not a default-constructed `error_code` and doesn't wrap a
|
or when `loc` is `nullptr`, `*this` stores no location (`has_location()` is `false`).
|
||||||
`std::error_code`, `has_location()` is `true` and `&location()` is `loc`.
|
Otherwise, `*this` stores `loc` (`has_location()` is `true` and `&location()` is `loc`.)
|
||||||
|
|
||||||
```
|
```
|
||||||
error_code( std::error_code const & ec ) noexcept;
|
error_code( std::error_code const & ec ) noexcept;
|
||||||
@ -808,16 +806,13 @@ Ensures: :: `*this == make_error_code( e )`.
|
|||||||
Remarks: :: This operator is only enabled when `is_error_code_enum<ErrorCodeEnum>::value` is `true`.
|
Remarks: :: This operator is only enabled when `is_error_code_enum<ErrorCodeEnum>::value` is `true`.
|
||||||
|
|
||||||
```
|
```
|
||||||
template<class ErrorCodeEnum>
|
void assign( error_code const& ec,
|
||||||
void assign( ErrorCodeEnum e,
|
boost::source_location const * loc ) noexcept;
|
||||||
boost::source_location const * loc ) noexcept;
|
|
||||||
```
|
```
|
||||||
[none]
|
[none]
|
||||||
* {blank}
|
* {blank}
|
||||||
+
|
+
|
||||||
Requires: :: `loc` points to a valid `boost::source_location` object with static storage duration.
|
Effects: :: `*this = error_code( ec, loc )`.
|
||||||
Effects: :: `*this = error_code( e, loc )`.
|
|
||||||
Remarks: :: This function is only enabled when `is_error_code_enum<ErrorCodeEnum>::value` is `true`.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
constexpr void clear() noexcept;
|
constexpr void clear() noexcept;
|
||||||
|
Reference in New Issue
Block a user