
9 Feb
2010
9 Feb
'10
10:51 a.m.
Willy Liu a écrit :
Hi, I wonder that how to access metadata in runtime. If I pre-compute something and save them into a template ARRAY<int N>, how can I random access the metadatas in runtime? What I can only do is binary searching. Is it possible to do in constant time, or there exist some functions in MPL doing this?
Just copy the data to an array, for example using mpl::for_each.