Boost logo

Boost Users :

Subject: [Boost-users] Best way to put N ranges into a new container?
From: John Dlugosz (JDlugosz_at_[hidden])
Date: 2010-07-06 17:49:16

I was originally contemplating writing something that took some number of Range arguments and push_back'ed onto a container. Where all of them are Random Access Ranges, it can count the elements first and reserve once. Otherwise, it just concats one range at a time. Maybe could be a bit smarter, but you get the idea.

But reading through the Range docs, I'm wondering now if a better approach would be a Range Adaptor that could make a concatenated "view" (to use MPL's terminology) of all of the components put together.

Does something like that already exist?


(footer not my idea)

TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at