diff --git a/docs/mkdocs/docs/api/basic_json/basic_json.md b/docs/mkdocs/docs/api/basic_json/basic_json.md index 2aa958090..5af666aa2 100644 --- a/docs/mkdocs/docs/api/basic_json/basic_json.md +++ b/docs/mkdocs/docs/api/basic_json/basic_json.md @@ -83,8 +83,10 @@ basic_json(basic_json&& other) noexcept; elements are moved from, that is, containers whose elements are `const` when accessed through a `const` container. Non-owning ranges such as spans or iterator ranges (e.g., `gsl::span`, `std::span`) are copied, so converting an rvalue span leaves the referenced elements unchanged. - A user-defined view whose elements are `const` through a `const` view, but which does not own them, is - treated as owning; pass such a view as an lvalue to copy the elements. + A user-defined type whose elements are `const` through a `const` object, but which does not own them alone, + is treated as owning: a view, or a handle that shares its storage with other handles (e.g., a wrapper of a + `std::shared_ptr>`) and does not copy it before giving non-`const` access. Moving from such + an rvalue changes the elements seen through the other handles; pass it as an lvalue to copy the elements. - **numbers**: [`number_integer_t`](number_integer_t.md), [`number_unsigned_t`](number_unsigned_t.md), [`number_float_t`](number_float_t.md), and all convertible number types such as `int`, `size_t`, `int64_t`, `float` or `double` can be used.