[Rcpp-devel] Dispatching based on SEXPTYPE

Hadley Wickham h.wickham at gmail.com
Wed Nov 21 22:14:49 CET 2012

> I would perhaps advise you to have the unique1 overloads not to return the
> stl object, as you are generating copies (although some may argue about
> compiler optimizations).

Ah, ok.  I don't have much intuition for when copies occur in C++.

> I would advise to return include the call to wrap in your unique1.

You mean just inline them in unique1, and not have the individual
unique2 functions?



RStudio / Rice University

More information about the Rcpp-devel mailing list