Created nlohmann::basicjson::operatort (markdown)
1 parent
5e50755963
commit
70b8afeb0b
1 file changed
+24
@@ -0,0 +1,24 @@
|
||||
```cpp
|
||||
template<typename T>
|
||||
operator T() const;
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Implicitly converts a value of a JSON container.
|
||||
|
||||
## Parameters
|
||||
|
||||
None.
|
||||
|
||||
## Return value
|
||||
|
||||
The return value is [`get<T>()`](https://github.com/nlohmann/json/wiki/nlohmann::basicjson::get).
|
||||
|
||||
## Complexity
|
||||
|
||||
Amortized linear in the size of the JSON type.
|
||||
|
||||
## Exceptions
|
||||
|
||||
`std::std::logic_error` if types are not compatible.
|
||||
Reference in new issue
Block a user