1 #ifndef ENTT_CORE_ITERATOR_HPP
2 #define ENTT_CORE_ITERATOR_HPP
7 #include "../config/config.h"
15 template<
typename Type>
31 : value{std::move(val)} {}
50 return std::addressof(value);
62 template<
typename It,
typename Sentinel = It>
65 using value_type =
typename std::iterator_traits<It>::value_type;
Utility class to create an iterable object from a pair of iterators.
iterator begin() const
Returns an iterator to the beginning.
It iterator
Iterator type.
iterable_adaptor()=default
Default constructor.
Sentinel sentinel
Sentinel type.
sentinel end() const
Returns an iterator to the end.
iterator cbegin() const
Returns an iterator to the beginning.
sentinel cend() const
Returns an iterator to the end.
iterable_adaptor(iterator from, sentinel to)
Creates an iterable object from a pair of iterators.
typename std::iterator_traits< It >::value_type value_type
Value type.