Boost logo

Boost Users :

From: Richard Hodges (hodges.r_at_[hidden])
Date: 2020-04-06 16:36:23


This stack-overflow quarion and answer looks relevant.

It seems as if boost could benefit from a flattening_iterator type:

https://stackoverflow.com/questions/3623082/flattening-iterator

On Mon, 6 Apr 2020 at 08:41, Lars Sunde via Boost-users <
boost-users_at_[hidden]> wrote:

> Appreciate the response but do not think this answers my question.
>
> Maybe I did not explain myself properly. I would like the foo object to
> return a (boost) range object that the caller can traverse without knowing
> the details of the internal structure. The foo object might contain a
> configurable number of vector of int.
>
> So in one scenario foo will be initalized like this;
> vec = { {1,2,3}, {4,5,6}, {7,8,9} };
> and in another scenario like this;
> vec = { {1,2,3}, {4,5,6}, {7,8,9}, {10,11,12} };
>
> I do not want to create another vector "master" that contains all int.
>
> Appreciate any input 🙂
>
> kind regards, Lars
>
> ------------------------------
> *Fra:* degski <degski_at_[hidden]>
> *Sendt:* søndag 5. april 2020 23:08
> *Til:* Boost users list <boost-users_at_[hidden]>
> *Kopi:* Lars Sunde <laasunde_at_[hidden]>
> *Emne:* Re: [Boost-users] boost range dynamic joined_range
>
>
> On Sun, 5 Apr 2020 at 14:31, Lars Sunde via Boost-users <
> boost-users_at_[hidden]> wrote:
>
> The following code compile on Visual Studio 2017 and will output the
> number 1 to 9.
>
>
> This code will do so: https://stackoverflow.com/a/50660987 .
>
> degski
> --
> @systemdeg
> "We value your privacy, click here!" Sod off! - degski
> "Anyone who believes that exponential growth can go on forever in a finite
> world is either a madman or an economist" - Kenneth E. Boulding
> "Growth for the sake of growth is the ideology of the cancer cell" -
> Edward P. Abbey
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
Richard Hodges
hodges.r_at_[hidden]
office: +442032898513
home: +376841522
mobile: +376380212


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net