Iterator over parser_result arguments.
More...
#include <result_iterator.hpp>
template<typename T, typename Ptr, typename Ref, bool IsOption>
class optionpp::result_iterator< T, Ptr, Ref, IsOption >
Iterator over parser_result arguments.
◆ result_iterator()
template<typename T , typename Ptr , typename Ref , bool IsOption>
Constructor.
- Parameters
-
result | Parser result to iterate over. |
◆ operator!=()
template<typename T , typename Ptr , typename Ref , bool IsOption>
result_iterator
comparison operator.
- Parameters
-
other | Right operand to compare. |
- Returns
- False if both iterators point to the same member of the same
parser_result
.
◆ operator*()
template<typename T , typename Ptr , typename Ref , bool IsOption>
Dereference operator.
- Exceptions
-
- Returns
- Reference to the pointed-to entry.
◆ operator++() [1/2]
template<typename T , typename Ptr , typename Ref , bool IsOption>
Prefix increment operator.
- Returns
- The incremented iterator pointing to the next non-option argument.
◆ operator++() [2/2]
template<typename T , typename Ptr , typename Ref , bool IsOption>
Postfix increment operator.
- Returns
- A copy of the unincremented iterator.
◆ operator--() [1/2]
template<typename T , typename Ptr , typename Ref , bool IsOption>
Prefix decrement operator.
- Exceptions
-
out_of_range | If the iterator already points to the beginning. |
- Returns
- The decremented iterator pointing to the previous non-option argument.
◆ operator--() [2/2]
template<typename T , typename Ptr , typename Ref , bool IsOption>
Postfix decrement operator.
- Exceptions
-
out_of_range | If the iterator already points to the beginning. |
- Returns
- A copy of the undecremented iterator.
◆ operator->()
template<typename T , typename Ptr , typename Ref , bool IsOption>
Member access operator.
- Exceptions
-
- Returns
- Reference to the pointed-to entry.
◆ operator==()
template<typename T , typename Ptr , typename Ref , bool IsOption>
result_iterator
comparison operator.
- Parameters
-
other | Right operand to compare. |
- Returns
- True if both iterators point to the same member of the
parser_result
.
The documentation for this class was generated from the following file: