1 #ifndef ENTT_CORE_ITERATOR_HPP
2 #define ENTT_CORE_ITERATOR_HPP
7 #include "../config/config.h"
15 template<
typename Type>
18 using pointer = decltype(std::addressof(std::declval<Type &>()));
31 : value{std::move(val)} {}
50 return std::addressof(value);
64 using value_type =
typename std::iterator_traits<It>::value_type;
Utility class to create an iterable object from a pair of iterators.
const_iterator begin() const
Returns an iterator to the beginning.
iterable_adaptor()=default
Default constructor.
const_iterator end() const
Returns an iterator to the end.
const_iterator cbegin() const
Returns an iterator to the beginning.
typename std::iterator_traits< It >::value_type value_type
Type of the objects returned during iteration.
const_iterator cend() const
Returns an iterator to the end.
It iterator
Iterator type.
iterator const_iterator
Const iterator type.
iterable_adaptor(It from, It to)
Creates an iterable object from a pair of iterators.