|
EnTT 4.0.0
|
Utility class to create an iterable object from a pair of iterators. More...
#include <iterator.hpp>
Public Types | |
| using | value_type = stl::iterator_traits<It>::value_type |
| Value type. | |
| using | iterator = It |
| Iterator type. | |
| using | sentinel = Sentinel |
| Sentinel type. | |
Public Member Functions | |
| constexpr | iterable_adaptor () noexcept(stl::is_nothrow_default_constructible_v< iterator > &&stl::is_nothrow_default_constructible_v< sentinel >) |
| Default constructor. | |
| constexpr | iterable_adaptor (iterator from, sentinel to) noexcept(stl::is_nothrow_move_constructible_v< iterator > &&stl::is_nothrow_move_constructible_v< sentinel >) |
| Creates an iterable object from a pair of iterators. | |
| constexpr iterator | begin () const noexcept |
| Returns an iterator to the beginning. | |
| constexpr sentinel | end () const noexcept |
| Returns an iterator to the end. | |
| constexpr iterator | cbegin () const noexcept |
| Returns an iterator to the beginning. | |
| constexpr sentinel | cend () const noexcept |
| Returns an iterator to the end. | |
Utility class to create an iterable object from a pair of iterators.
| It | Type of iterator. |
| Sentinel | Type of sentinel. |
Definition at line 125 of file iterator.hpp.
| using entt::iterable_adaptor< It, Sentinel >::iterator = It |
Iterator type.
Definition at line 129 of file iterator.hpp.
| using entt::iterable_adaptor< It, Sentinel >::sentinel = Sentinel |
Sentinel type.
Definition at line 131 of file iterator.hpp.
| using entt::iterable_adaptor< It, Sentinel >::value_type = stl::iterator_traits<It>::value_type |
Value type.
Definition at line 127 of file iterator.hpp.
|
inlineconstexprnoexcept |
Default constructor.
Definition at line 134 of file iterator.hpp.
|
inlineconstexprnoexcept |
Creates an iterable object from a pair of iterators.
| from | Begin iterator. |
| to | End iterator. |
Definition at line 143 of file iterator.hpp.
|
inlinenodiscardconstexprnoexcept |
Returns an iterator to the beginning.
Definition at line 151 of file iterator.hpp.
|
inlinenodiscardconstexprnoexcept |
Returns an iterator to the beginning.
Definition at line 165 of file iterator.hpp.
|
inlinenodiscardconstexprnoexcept |
Returns an iterator to the end.
Definition at line 170 of file iterator.hpp.
|
inlinenodiscardconstexprnoexcept |
Returns an iterator to the end.
Definition at line 160 of file iterator.hpp.