| View previous topic :: View next topic |
| Author |
Message |
Dilip Guest
|
|
| Back to top |
|
 |
chabiss Guest
|
Posted: Tue Apr 26, 2005 9:06 am Post subject: Re: Implementing Ruby Ranges in C++ |
|
|
Check out the RangeLib library...Boost and STLSoft both offer an
implementation of the range concept
http://rangelib.synesis.com.au/
-Charles
"Dilip" <rdilipk (AT) lycos (DOT) com> wrote
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
Ben Hutchings Guest
|
Posted: Wed Apr 27, 2005 7:49 am Post subject: Re: Implementing Ruby Ranges in C++ |
|
|
Dilip wrote:
| Quote: | Gurus
I came across a post[1] that has done a non-trivial job of trying to
implement Ruby-like Ranges[2] in C#. Considering the kind of
contortions an OO language had to undergo to implement this, I wonder
if something similar has already been done in C++ using the magic of
templates? Maybe the Boost libraries have something equivalent?
|
They do:
<http://www.boost.org/libs/iterator/doc/counting_iterator.html>
--
Ben Hutchings
Having problems with C++ templates? Your questions may be answered by
<http://womble.decadentplace.org.uk/c++/template-faq.html>.
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
|