mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 04:27:14 +02:00
Document result<>::emplace
This commit is contained in:
@ -1659,6 +1659,11 @@ public:
|
|||||||
|
|
||||||
constexpr E error() const;
|
constexpr E error() const;
|
||||||
|
|
||||||
|
// emplace
|
||||||
|
|
||||||
|
template<class... A>
|
||||||
|
constexpr T& emplace( A&&... a );
|
||||||
|
|
||||||
// swap
|
// swap
|
||||||
|
|
||||||
constexpr void swap( result& r );
|
constexpr void swap( result& r );
|
||||||
@ -1854,6 +1859,20 @@ constexpr E error() const;
|
|||||||
Effects: ::
|
Effects: ::
|
||||||
If `*this` holds an error, returns it. Otherwise, returns `E()`.
|
If `*this` holds an error, returns it. Otherwise, returns `E()`.
|
||||||
|
|
||||||
|
#### emplace
|
||||||
|
|
||||||
|
```
|
||||||
|
template<class... A>
|
||||||
|
constexpr T& emplace( A&&... a );
|
||||||
|
```
|
||||||
|
[none]
|
||||||
|
* {blank}
|
||||||
|
+
|
||||||
|
Ensures: ::
|
||||||
|
`*this` holds the value `T( std::forward<A>(a)... )`.
|
||||||
|
Returns: ::
|
||||||
|
A reference to the contained value.
|
||||||
|
|
||||||
#### swap
|
#### swap
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -1962,6 +1981,10 @@ public:
|
|||||||
|
|
||||||
constexpr E error() const;
|
constexpr E error() const;
|
||||||
|
|
||||||
|
// emplace
|
||||||
|
|
||||||
|
constexpr void emplace();
|
||||||
|
|
||||||
// swap
|
// swap
|
||||||
|
|
||||||
constexpr void swap( result& r );
|
constexpr void swap( result& r );
|
||||||
@ -2105,6 +2128,17 @@ constexpr E error() const;
|
|||||||
Effects: ::
|
Effects: ::
|
||||||
If `*this` holds an error, returns it. Otherwise, returns `E()`.
|
If `*this` holds an error, returns it. Otherwise, returns `E()`.
|
||||||
|
|
||||||
|
#### emplace
|
||||||
|
|
||||||
|
```
|
||||||
|
constexpr void emplace();
|
||||||
|
```
|
||||||
|
[none]
|
||||||
|
* {blank}
|
||||||
|
+
|
||||||
|
Ensures: ::
|
||||||
|
`*this` holds an unspecified value.
|
||||||
|
|
||||||
#### swap
|
#### swap
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user