23 template <
typename IteratorT >
24 struct Range:
public std::pair< IteratorT, IteratorT >
26 typedef std::pair< IteratorT, IteratorT > Base;
27 Range(
const IteratorT& from,
const IteratorT& to)
30 IteratorT begin()
const
38 typedef typename std::decay<typename IteratorT::value_type>::type Value;
39 auto asVector()
const -> std::vector< Value >
41 vector< Value > result;
42 for (
const auto& element: *
this)
44 result.push_back(element);