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.10.4.

Thanks,

Ben.

Attachment: string-overload-containsElementNamed.patch
Description: string-overload-containsElementNamed.patch

_______________________________________________
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