Created nlohmann::basic_json::operator= (markdown)
1 parent
d6330e7840
commit
d7be070829
1 file changed
+30
@@ -0,0 +1,30 @@
|
||||
```cpp
|
||||
reference& operator=(basic_json other)
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Replaces the contents with a copy of `other`. In case `other` is an rvalue, its value is moved.
|
||||
|
||||
## Parameters
|
||||
|
||||
- `other`: container to copy
|
||||
|
||||
## Return value
|
||||
|
||||
`*this`
|
||||
|
||||
## Complexity
|
||||
|
||||
Linear in the size of `other`. If `other` is an rvalue, the operation has constant complexity.
|
||||
|
||||
## Exceptions
|
||||
|
||||
The function's noexcept-specification is:
|
||||
|
||||
```cpp
|
||||
std::is_nothrow_move_constructible<value_t>::value and
|
||||
std::is_nothrow_move_assignable<value_t>::value and
|
||||
std::is_nothrow_move_constructible<json_value>::value and
|
||||
std::is_nothrow_move_assignable<json_value>::value
|
||||
```
|
||||
Reference in new issue
Block a user