Clingo
Loading...
Searching...
No Matches
CppClingo::Util::enumerate< T > Class Template Reference

A python style enumerate object. More...

#include <enumerate.hh>

Classes

class  iterator
 Iterator yielding a index and a reference. More...
 

Public Member Functions

template<iterable U>
requires std::is_lvalue_reference_v<U>
 enumerate (U &&x)
 Enumerate an iterable collection.
 
 enumerate (T begin, T end)
 Enumerate an iterator range.
 
auto begin () const -> iterator
 Get the begin iterator.
 
auto end () const -> iterator
 Get the end iterator (sentinel).
 
 enumerate (T begin, T end)
 Enumerate an integer range.
 
 enumerate (T end)
 Enumerate an integer range.
 
auto begin () const -> iterator
 Get the begin iterator.
 
auto end () const -> iterator
 Get the end iterator.
 

Detailed Description

template<std::forward_iterator T>
class CppClingo::Util::enumerate< T >

A python style enumerate object.

An object similar to pythons range expression.


The documentation for this class was generated from the following file: