[Rcpp-devel] Add Vector::containsElementNamed(string) overload?

2013-07-04 Thread QRD
Hi, Would you consider adding a convenience overload bool containsElementNamed( const std::string & target ) const; to the Rcpp::Vector class? The attached patch does this, chaining down to the existing (const char *) method. It also updates the unit test to check both overloads. Against 0

Re: [Rcpp-devel] Add Vector::containsElementNamed(string) overload?

2013-07-04 Thread Romain Francois
Thanks. This seems like a good idea. And kudos for updating unit tests as well. I'll apply this later if nobody else is faster. Romain Le 4 juil. 2013 à 12:24, QRD a écrit : > Hi, > > Would you consider adding a convenience overload > > bool containsElementNamed( const std::string & targe