diff --git a/nlohmann::basic_json::operator=.md b/nlohmann::basic_json::operator=.md new file mode 100644 index 0000000..1728db4 --- /dev/null +++ b/nlohmann::basic_json::operator=.md @@ -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 and +std::is_nothrow_move_assignable::value and +std::is_nothrow_move_constructible::value and +std::is_nothrow_move_assignable::value +``` \ No newline at end of file