> 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?

Thanks!

Hadley

-- 
RStudio / Rice University
http://had.co.nz/
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to