Created nlohmann::basic_json::operator= (markdown)

Niels committed 2015-04-25 00:28:05 +02:00
1 parent d6330e7840
commit d7be070829
1 file changed
+30
+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
```