[mpl] Reconstructing an mpl::list from mpl::l_item's.
Hi there,
Using mpl::remove, et al. I can eliminate types from an mpl::list. However, it
appears that the result is not an actual mpl::list, but some sort of indexed,
cons-like structure composed of mpl::l_item types. Is there a way to recreate an
mpl::list proper using these l_item's?
E.g.
typedef mpl::list
Sent from my iPhone
On Aug 19, 2010, at 10:19 AM, AJG
Using mpl::remove, et al. I can eliminate types from an mpl::list. However, it appears that the result is not an actual mpl::list, but some sort of indexed, cons-like structure composed of mpl::l_item types. Is there a way to recreate an mpl::list proper using these l_item's?
E.g.
typedef mpl::list
L; typedef mpl::remove ::type R; typedef mpl::???<R>::type => mpl::list ;
Not really. That type with the l_items acts just like list. In general with MPL you can't count on the exact types of sequences and integer constants. HTH Dave Abrahams BoostPro Computing
participants (2)
-
AJG
-
Dave Abrahams