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.
- But never try to write to the range (eg.