Skip to content

A Python like range function to be used with C++11 range for

License

Notifications You must be signed in to change notification settings

ghlecl/range_fn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

range_fn

A Python like range function to be used with C++11 range-based for loops. The code here accompanies a blog post on the subject.

Usage

#include "range.hxx"
for( auto idx : estd::range( 8 ) ) { /* use idx */ }
for( auto idx : estd::range( 7, 1 ) ) { /* use idx */ }
for( auto idx : estd::range( 4, 32, 5 ) ) { /* use idx */ }

About

A Python like range function to be used with C++11 range for

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published