Skip to content
Prev 6409 / 10988 Next

[Rcpp-devel] Using data-frames as sets of rows (e.g. using R data-frames as lookup tables in C++)

Hello,

I've had some time now to look into this code.
If you don't care about ordering, I'd suggest you to use a hash map 
instead of a map.

We have the RCPP_UNORDERED_MAP macro that should dispatch to either 
std::unordered_map<> or std::tr1::unordered_map<> depending on your 
compiler version, etc ...

Otherwise you can use the implementation from boost. This just requires 
you to depend on the BH package. RcppExtras does that.

Did you have a look at RcppExtras ?

Romain

Le 06/09/13 16:20, Mark Clements a ?crit :