Nesting depth guard. More...
#include <readerContext.hpp>
Public Member Functions | |
| DepthGuard (anch::json::ReaderContext &context) | |
| DepthGuard (const DepthGuard &guard)=delete | |
| ~DepthGuard () noexcept | |
Nesting depth guard.
Enter object or array level on construction and leave it on destruction.
|
explicit |
DepthGuard constructor
| context | the reader context |
| anch::json::MappingError | depth is greater than max_depth option |
|
delete |
Forbids DepthGuard copy constructor
| guard | the guard not to copy |
|
noexcept |
DepthGuard destructor: leave level