1
0
mirror of https://github.com/nlohmann/json synced 2024-11-23 04:20:06 +00:00

Merge pull request #227 from kevin--/kevin--/noexcept_documentation

fixes #223 by updating README.md
This commit is contained in:
Niels 2016-03-30 20:21:35 +02:00
commit 04edafbddc

View File

@ -195,6 +195,8 @@ std::cout << std::setw(4) << j << std::endl;
These operators work for any subclasses of `std::istream` or `std::ostream`.
Please note that setting the exception bit for `failbit` is inappropriate for this use case. It will result in program termination due to the `noexcept` specifier in use.
### STL-like access
We designed the JSON class to behave just like an STL container. In fact, it satisfies the [**ReversibleContainer**](http://en.cppreference.com/w/cpp/concept/ReversibleContainer) requirement.