[Boost-bugs] [Boost C++ Libraries] #9684: Add a multidimensional counting_range

Subject: [Boost-bugs] [Boost C++ Libraries] #9684: Add a multidimensional counting_range
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-19 16:53:32

#9684: Add a multidimensional counting_range
 Reporter: ilja.j.honkonen@… | Owner: neilgroves
     Type: Patches | Status: new
Milestone: To Be Determined | Component: range
  Version: Boost 1.55.0 | Severity: Not Applicable
 Keywords: multidimensional counting_range |
 I think a multidimensional (floating point) counting_range with
 configurable step size would be useful, at least I have found a need for
 that many times. Here is a suggestion, could something like this
 eventually be included in boost? What modifications should I make (after
 switching to boost::bind)? The iterated values are evenly spaced from each
 other and the boundaries.

 Example usage:

 boost::array<double, 2> start{-4, 3}, end{4, 11};

 const size_t samples_per_dim = 2;

 for (const auto& i: volume_iterator(start, end, samples_per_dim)) {




 -2 5

 2 5

 -2 9

 2 9

Ticket URL: <https://svn.boost.org/trac/boost/ticket/9684>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC