Skip to content

Commit 6238e35

Browse files
committed
fixed array::array docs
1 parent c575f85 commit 6238e35

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

include/boost/json/array.hpp

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class array
182182
@li **(5)** the array is filled with values in the range
183183
`[first, last)`, preserving order.
184184
185-
@li **(6)** the array is filled with copies of the values in `init,
185+
@li **(6)** the array is filled with copies of the values in `init`,
186186
preserving order.
187187
188188
@li **(7)**, **(8)** the array is filled with copies of the elements of
@@ -237,7 +237,6 @@ class array
237237
238238
@see @ref pilfer,
239239
[Valueless Variants Considered Harmful](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0308r0.html).
240-
//
241240
@{
242241
*/
243242
array() noexcept
@@ -318,14 +317,6 @@ class array
318317
array const& other,
319318
storage_ptr sp);
320319

321-
/// Overload
322-
array(pilfered<array> other) noexcept
323-
: sp_(std::move(other.get().sp_))
324-
, t_(detail::exchange(
325-
other.get().t_, &empty_))
326-
{
327-
}
328-
329320
/// Overload
330321
array(array&& other) noexcept
331322
: sp_(other.sp_)
@@ -339,6 +330,14 @@ class array
339330
array(
340331
array&& other,
341332
storage_ptr sp);
333+
334+
/// Overload
335+
array(pilfered<array> other) noexcept
336+
: sp_(std::move(other.get().sp_))
337+
, t_(detail::exchange(
338+
other.get().t_, &empty_))
339+
{
340+
}
342341
/// @}
343342

344343
/** Assignment operators.

0 commit comments

Comments
 (0)