#include <py2cpp/enumerate.hpp>
template<typename T>
EnumerateIterableWrapper struct
| Template parameters | |
|---|---|
| T | |
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
Public variables
- T& iterable
Function documentation
template<typename T>
auto py:: detail:: EnumerateIterableWrapper<T>:: 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>
auto py:: detail:: EnumerateIterableWrapper<T>:: 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.