Topic: Proposal. Generators of numeric sequences: the steps
Author: Mikhail Semenov <mikhailsemenov1957@gmail.com>
Date: Sat, 28 Jun 2014 08:50:49 -0700 (PDT)
Raw View
------=_Part_1085_10091446.1403970649966
Content-Type: text/plain; charset=UTF-8
https://dl.dropboxusercontent.com/u/35715999/steps_template.htm
I have change the implementation of the original proposal, which allowed to
use the steps<T> class only in a for-loop.
In brief, the idea is to create iterators that can generate sequences (in
contrast iterators based on containers).
There are two types of generators:
(1) with a fixed step;
(2) base on a function whose parameter changes within a give range.
Such objects don't occupy much space but can be used to generate long
sequences. Such iterators can be used for fill containers and also in
for-loops. They can also be used with other STL functions that involve
iterators.
--
---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.
------=_Part_1085_10091446.1403970649966
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div><a href=3D"https://dl.dropboxusercontent.com/u/357159=
99/steps_template.htm">https://dl.dropboxusercontent.com/u/35715999/steps_t=
emplate.htm</a></div><div><br></div><div>I have change the implementation o=
f the original proposal, which allowed to use the steps<T> class only=
in a for-loop.</div><div>In brief, the idea is to create iterators that ca=
n generate sequences (in contrast iterators based on containers).</div=
><div>There are two types of generators:</div><div><br></div><div>(1) with =
a fixed step;</div><div>(2) base on a function whose parameter changes with=
in a give range.</div><div><br></div><div>Such objects don't occupy much sp=
ace but can be used to generate long sequences. Such iterators can be used =
for fill containers and also in for-loops. They can also be used with other=
STL functions that involve iterators.</div><div><br></div><div><br></=
div><div><br></div></div>
<p></p>
-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />
------=_Part_1085_10091446.1403970649966--
.