Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/Iterate.hpp

    r1b8fc06c r8f06277  
    2020#include <iterator>
    2121
    22 // Returns an iterator that is it advanced n times.
     22// it's nice to actually be able to increment iterators by an arbitrary amount
    2323template< class InputIt, class Distance >
    2424InputIt operator+( InputIt it, Distance n ) {
     
    5050
    5151// -----------------------------------------------------------------------------
    52 // Helper struct and function to support
    53 // for ( val_and_index : enumerate( container ) ) {}
    54 // which iterates through the container and tracks the index as well.
    55 
    5652template< typename T >
    5753struct enumerate_t {
     
    113109
    114110// -----------------------------------------------------------------------------
    115 // Helper function to transform one iterable container into another.
    116 
    117111template< typename OutType, typename Range, typename Functor >
    118112OutType map_range( const Range& range, Functor&& functor ) {
     
    212206// Helper struct and function to support
    213207// for ( val : lazy_map( container1, f ) ) {}
    214 // syntax to have a for each that iterates a container,
    215 // mapping each element by applying f.
    216 
     208// syntax to have a for each that iterates a container, mapping each element by applying f
    217209template< typename T, typename Func >
    218210struct lambda_iterate_t {
Note: See TracChangeset for help on using the changeset viewer.