From d7be0708290d3a2a30554aea605cf886a05580cc Mon Sep 17 00:00:00 2001 From: Niels Date: Sat, 25 Apr 2015 00:28:05 +0200 Subject: [PATCH] Created nlohmann::basic_json::operator= (markdown) --- nlohmann::basic_json::operator=.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 nlohmann::basic_json::operator=.md 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