LoginSignup
2
2

More than 5 years have passed since last update.

cpp_range - embeddable range iterator

Last updated at Posted at 2015-06-18
cpp_libraries article
cpp_binarysearch http://qiita.com/cielavenir/items/852e2458cd327ca73613
cpp_inspect http://qiita.com/cielavenir/items/95615185b5ca47d9111d
cpp_range http://qiita.com/cielavenir/items/94c9abbb7767bd57607b
cpp_rational http://qiita.com/cielavenir/items/2171327462d2afd98b65

Download

What's this?

  • Very small (less than 100 lines) equivalent of boost::irange().
  • The iterator should be compatible with RandomIterator (tested with lower_bound()).
    • But never try to write to the range (eg. swap(ra[0],ra[1])) or you will have unexpected result.

Example

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2