From 9418570b68b6f67f282bcd0cab9f7858e9b95e1e Mon Sep 17 00:00:00 2001 From: Niels Date: Sun, 12 Apr 2015 16:32:02 +0200 Subject: [PATCH] Created nlohmann::basic_json::clear (markdown) --- nlohmann::basic_json::clear.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 nlohmann::basic_json::clear.md diff --git a/nlohmann::basic_json::clear.md b/nlohmann::basic_json::clear.md new file mode 100644 index 0000000..5220ce8 --- /dev/null +++ b/nlohmann::basic_json::clear.md @@ -0,0 +1,32 @@ +```cpp +void clear(); +``` + +## Description + +Removes all elements from the container. The resulting value depends on the different value types and is defined as follows: + +| Value type | JSON value | +| ---------- | --------------------- | +| null | `null` | +| boolean | `false` | +| string | `""` | +| number | `0` | +| object | `{}` | +| array | `[]` | + +## Parameters + +None. + +## Return value + +None. + +## Complexity + +Linear in the size of the container. + +## Exceptions + +None. The function's noexcept-specification is `noexcept`. \ No newline at end of file