@@ -230,17 +230,17 @@ Please note that setting the exception bit for `failbit` is inappropriate for th
...
@@ -230,17 +230,17 @@ Please note that setting the exception bit for `failbit` is inappropriate for th
#### Read from iterator range
#### Read from iterator range
You can also read JSON from an iterator range; that is, from any container accessible by iterators whose content is stored as contiguous byte sequence, for instance a `std::vector<uint8_t>`:
You can also read JSON from an iterator range; that is, from any container accessible by iterators whose content is stored as contiguous byte sequence, for instance a `std::vector<std::uint8_t>`:
```cpp
```cpp
std::vector<uint8_t>v={'t','r','u','e'};
std::vector<std::uint8_t>v={'t','r','u','e'};
jsonj=json::parse(v.begin(),v.end());
jsonj=json::parse(v.begin(),v.end());
```
```
You may leave the iterators for the range [begin, end):
You may leave the iterators for the range [begin, end):
```cpp
```cpp
std::vector<uint8_t> v = {'t', 'r', 'u', 'e'};
std::vector<std::uint8_t> v = {'t', 'r', 'u', 'e'};
json j = json::parse(v);
json j = json::parse(v);
```
```
...
@@ -682,7 +682,7 @@ Though JSON is a ubiquitous data format, it is not a very compact format suitabl
...
@@ -682,7 +682,7 @@ Though JSON is a ubiquitous data format, it is not a very compact format suitabl