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