|
Boost : |
Subject: Re: [boost] [tuple] any interest in a unique_tuple<...>?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2014-03-08 12:41:27
AMDG
On 03/08/2014 09:24 AM, Hui Li wrote:
> Testing the water, see if anyone might find this useful.
> Any comments/suggestions are absolutely welcome and appreciated!
>
The behavior of this seems a bit odd to me.
If I needed something like this, I think
I would prefer to create a normal tuple or
fusion::set in conjunction some form of
set_union algorithm.
> unique_tuple<T...>, where types in <T...> may themselves be other unqiue_tupe<...>'s,
> contains exactly one copy of each of the "finally nested" element types in <T...>,
> regardless of how many times a type appears in the type parameter pack,
> or how deeply it is nested inside one or more unique_tuple's in <T...>.
>
> unique_tuple<T...> differs from std::tuple<T...> and boost::fusion::set<T...> etc in that nested unique_tuple's
> are effectively "flattened", and elements contained are unique no matter how complex the nesting
> gets, or how many times or how deeply nested the element type is in <T...>.
>
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk