Created nlohmann::basicjson::operatort (markdown)

Niels committed 2015-04-11 19:19:48 +02:00
1 parent 5e50755963
commit 70b8afeb0b
1 file changed
+24
+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.