WPILibC++
2018.4.1-20180728210220-1136-g75a6720
|
This provides a very simple, boring adaptor for a begin and end iterator into a range type. More...
#include <iterator>
#include <utility>
Go to the source code of this file.
Classes | |
class | wpi::iterator_range< IteratorT > |
A range adaptor for a pair of iterators. More... | |
Namespaces | |
wpi | |
namespace to hold default to_json function | |
Functions | |
template<class T > | |
iterator_range< T > | wpi::make_range (T x, T y) |
Convenience function for iterating over sub-ranges. More... | |
template<typename T > | |
iterator_range< T > | wpi::make_range (std::pair< T, T > p) |
template<typename T > | |
iterator_range< decltype(begin(std::declval < T >)))> | wpi::drop_begin (T &&t, int n) |
This provides a very simple, boring adaptor for a begin and end iterator into a range type.
This should be used to build range views that work well with range based for loops and range based constructors.
Note that code here follows more standards-based coding conventions as it is mirroring proposed interfaces for standardization.