template<typename T>
py::detail::EnumerateIterableWrapper struct

EnumerateIterableWrapper.

The code defines a struct called EnumerateIterableWrapper that acts as a wrapper for an iterable object. It provides two member functions, begin() and end(), which return instances of the EnumerateIterator struct.

Public functions

auto begin() const -> EnumerateIterator< T > -> auto
begin
auto end() const -> EnumerateIterator< T > -> auto
end

Public variables

T& iterable

Function documentation

template<typename T _1>
auto py::detail::EnumerateIterableWrapper<_1>::begin() const -> EnumerateIterator< T >

begin

Returns EnumerateIterator<T>

The begin() function is a member function of the EnumerateIterableWrapper struct. It returns an instance of the EnumerateIterator<T> struct, which is used to iterate over the elements of the iterable object.

template<typename T _1>
auto py::detail::EnumerateIterableWrapper<_1>::end() const -> EnumerateIterator< T >

end

Returns EnumerateIterator<T>

The end() function is a member function of the EnumerateIterableWrapper struct. It returns an instance of the EnumerateIterator<T> struct, which is used to mark the end of the iteration over the elements of the iterable object.