1
0
mirror of https://github.com/nlohmann/json.git synced 2025-08-09 05:22:48 +03:00

📝 add more API documentation

This commit is contained in:
Niels Lohmann
2020-08-13 15:03:28 +02:00
parent ce6adc447a
commit dd2fb3b454
13 changed files with 624 additions and 19 deletions

View File

@@ -7,9 +7,8 @@ static bool accept(InputType&& i,
const bool ignore_comments = false);
// (2)
static bool accept(iterator first, iterator last,
const bool ignore_comments = false);
static bool accept(const_iterator first, const_iterator last,
template<typename IteratorType>
static bool accept(IteratorType first, IteratorType last,
const bool ignore_comments = false);
```
@@ -35,6 +34,9 @@ Unlike the [`parse`](parse.md) function, this function neither throws an excepti
- a pointer to a null-terminated string of single byte characters
- an object `obj` for which `begin(obj)` and `end(obj)` produces a valid pair of iterators.
`IteratorType`
: a compatible iterator type
## Parameters
`i` (in)