mirror of
https://github.com/nlohmann/json.git
synced 2026-10-03 22:06:59 +01:00
25 lines
522 B
Markdown
25 lines
522 B
Markdown
# nlohmann::basic_json::~basic_json
|
|
|
|
```
|
|
~basic_json() noexcept;
|
|
```
|
|
|
|
Destroys the JSON value and frees all allocated memory.
|
|
|
|
## Exception safety
|
|
|
|
No-throw guarantee: this member function never throws exceptions.
|
|
|
|
## Complexity
|
|
|
|
Linear.
|
|
|
|
## See also
|
|
|
|
- [basic_json](https://json.nlohmann.me/api/basic_json/basic_json/index.md) constructs a JSON value
|
|
- [clear](https://json.nlohmann.me/api/basic_json/clear/index.md) clears the content of a JSON value without destroying it
|
|
|
|
## Version history
|
|
|
|
- Added in version 1.0.0.
|