MySQL 8.0.39
Source Code Documentation
|
Convenience class for handling iterator range. More...
#include <config_parser.h>
Public Types | |
using | value_type = typename Iter::value_type |
using | reference = typename Iter::reference |
using | iterator = Iter |
using | const_iterator = iterator |
using | difference_type = typename std::iterator_traits< Iter >::difference_type |
using | size_type = difference_type |
Public Member Functions | |
Range (Iter start, Iter finish) | |
Iter | begin () const |
Get iterator to beginning of range. More... | |
Iter | end () const |
Get iterator to end of range. More... | |
bool | empty () const |
Check if range is empty. More... | |
size_type | size () const |
Get size of the range, that is, number of elements in the range. More... | |
Private Attributes | |
Iter | begin_ |
Iter | end_ |
Convenience class for handling iterator range.
This is a template class that accept a pair of iterators and implement the necessary methods to be able to be used as a sequence container.
using mysql_harness::Range< Iter >::const_iterator = iterator |
using mysql_harness::Range< Iter >::difference_type = typename std::iterator_traits<Iter>::difference_type |
using mysql_harness::Range< Iter >::iterator = Iter |
using mysql_harness::Range< Iter >::reference = typename Iter::reference |
using mysql_harness::Range< Iter >::size_type = difference_type |
using mysql_harness::Range< Iter >::value_type = typename Iter::value_type |
|
inline |
|
inline |
Get iterator to beginning of range.
|
inline |
Check if range is empty.
|
inline |
Get iterator to end of range.
|
inline |
Get size of the range, that is, number of elements in the range.
std::distance
internally.
|
private |
|
private |