acl/core/iterator.h¶
#include "acl/core/iterator.h"
The iterators over the items of an array.
make_iterator¶
template<class item_type, size_t num_items>
array_iterator<item_type> make_iterator(item_type(&items)[num_items])
Returns an iterator over the items of a C array.
template<class item_type, size_t num_items>
const_array_iterator<item_type> make_iterator(item_type const (&items)[num_items])
Returns an iterator over the items of a const C array.
template<class item_type>
array_iterator<item_type> make_iterator(item_type* items, size_t num_items)
Returns an iterator over num_items items that start at the given pointer.
template<class item_type>
const_array_iterator<item_type> make_iterator(const item_type* items, size_t num_items)
Returns an iterator over num_items const items that start at the given pointer.
make_reverse_iterator¶
template<class item_type, size_t num_items>
array_reverse_iterator<item_type> make_reverse_iterator(item_type(&items)[num_items])
Returns an iterator over the items of a C array, from the last item to the first item.
template<class item_type, size_t num_items>
const_array_reverse_iterator<item_type> make_reverse_iterator(
item_type const (&items)[num_items])
Returns an iterator over the items of a const C array, from the last item to the first item.
template<class item_type>
array_reverse_iterator<item_type> make_reverse_iterator(
item_type* items,
size_t num_items)
Returns an iterator over num_items items that start at the given pointer, from the last item to the first item.
template<class item_type>
const_array_reverse_iterator<item_type> make_reverse_iterator(
const item_type* items,
size_t num_items)
Returns an iterator over num_items const items that start at the given pointer, from the last item to the first item.