[Rcpp-devel] Add Vector::containsElementNamed(string) overload?
QRD
qrd at sig.com
Thu Jul 4 12:24:04 CEST 2013
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: string-overload-containsElementNamed.patch
Type: application/octet-stream
Size: 2977 bytes
Desc: string-overload-containsElementNamed.patch
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20130704/db69cc76/attachment.obj>
More information about the Rcpp-devel
mailing list