mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-03-03 12:58:03 +01:00
Add iterator accessor
Move iterators to results class
This commit is contained in:
parent
3ebfbd9923
commit
bc8120f531
@ -50,6 +50,22 @@ public:
|
||||
std::string description;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Return begin iterator for results in the queue.
|
||||
*/
|
||||
std::deque<Error>::const_iterator begin() const
|
||||
{
|
||||
return errors.begin();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return end iterator for results in the queue.
|
||||
*/
|
||||
std::deque<Error>::const_iterator end() const
|
||||
{
|
||||
return errors.end();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return the number of errors in the queue.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user