Boost logo

Boost :

Subject: Re: [boost] Interest in a container which can hold multiple data types?
From: Boris Rasin (boris_at_[hidden])
Date: 2015-05-05 13:23:51

On 5/5/2015 7:49 PM, Joaquin M Lopez Munoz wrote:
> TONGARI J <tongari95 <at>> writes:
>> If the data sequence shows some affinity, I guess an ordered
>> tuple_vector-based sequence can provide some performance benefit in
>> traversal (with some crafted for_each method).
>> That is, a sequence of [AAABBB] may be traversed faster than [ABABAB] for
>> such a container, and I believe in the later case such that the types are
>> uniformly distributed, vector<variant> will perform better.
> I wrote something on this some time ago, maybe worth having a look at:

Interesting read, thanks for the links. Although in this case we are
talking about vector<variant> which stores data by value.

Boost list run by bdawes at, gregod at, cpdaniel at, john at