🔥 remove example for destructor
This commit is contained in:
parent
892247dd8e
commit
fa14739448
@ -1,13 +0,0 @@
|
||||
#include <iostream>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
using json = nlohmann::json;
|
||||
|
||||
int main()
|
||||
{
|
||||
json* j = new json("Hello, world!");
|
||||
std::cout << *j << std::endl;
|
||||
|
||||
// explicitly call destructor
|
||||
delete j;
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
"Hello, world!"
|
||||
@ -14,22 +14,6 @@ No-throw guarantee: this member function never throws exceptions.
|
||||
|
||||
Linear.
|
||||
|
||||
## Examples
|
||||
|
||||
??? example
|
||||
|
||||
The following code shows an example for the destructor.
|
||||
|
||||
```cpp
|
||||
--8<-- "examples/~basic_json.cpp"
|
||||
```
|
||||
|
||||
Output:
|
||||
|
||||
```json
|
||||
--8<-- "examples/~basic_json.output"
|
||||
```
|
||||
|
||||
## Version history
|
||||
|
||||
- Added in version 1.0.0.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user