c++ - What is the benefit of having a String class for Rcpp -


i wondering benefit having rcpp string class (documented here).

it possible convert between rcpp:string , std::string, why not use std::string since many of methods implemented. i'm guessing there must reason doing this. advice.

easy: there strsxp , rcpp types first , foremost proxy objects underlying r types. no copies.

using std::string entail copies on way in , out. don't want that.


Comments

Popular posts from this blog

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -