|
Silicium
|
#include <iterator_range.hpp>
Public Types | |
| typedef std::iterator_traits< Iterator >::difference_type | difference_type |
| typedef detail::actual_value_type< Iterator >::type | value_type |
| typedef Iterator | iterator |
| typedef Iterator | const_iterator |
Public Member Functions | |
| BOOST_CONSTEXPR | iterator_range () BOOST_NOEXCEPT |
| template<class It1 , class It2 > | |
| BOOST_CONSTEXPR | iterator_range (It1 &&begin, It2 &&end) BOOST_NOEXCEPT |
| template<class OtherIterator > | |
| iterator_range (iterator_range< OtherIterator > const &other) BOOST_NOEXCEPT | |
| template<class OtherIterator > | |
| iterator_range & | operator= (iterator_range< OtherIterator > const &other) BOOST_NOEXCEPT |
| BOOST_CONSTEXPR Iterator const & | begin () const BOOST_NOEXCEPT |
| BOOST_CONSTEXPR Iterator const & | end () const BOOST_NOEXCEPT |
| BOOST_CONSTEXPR bool | empty () const BOOST_NOEXCEPT |
| BOOST_CONSTEXPR difference_type | size () const BOOST_NOEXCEPT |
| SILICIUM_CXX14_CONSTEXPR void | pop_front (difference_type n) BOOST_NOEXCEPT |
| SILICIUM_CXX14_CONSTEXPR void | pop_front () BOOST_NOEXCEPT |
| value_type & | front () const BOOST_NOEXCEPT |
| value_type & | operator[] (difference_type index) const BOOST_NOEXCEPT |
| This method is only available with random access iterators so that it takes O(1) in time. More... | |
| typedef Iterator Si::iterator_range< Iterator >::const_iterator |
| typedef std::iterator_traits<Iterator>::difference_type Si::iterator_range< Iterator >::difference_type |
| typedef Iterator Si::iterator_range< Iterator >::iterator |
| typedef detail::actual_value_type<Iterator>::type Si::iterator_range< Iterator >::value_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
This method is only available with random access iterators so that it takes O(1) in time.
|
inline |
This method is only available with random access iterators. If you need this for weaker iterators, use a loop that calls pop_front() for individual elements.
|
inline |
|
inline |
This method is only available with random access iterators. Use std::distance(begin(r), end(r)) if you really want a potential O(n) operation.
1.8.10