Message-ID: <CBECA89F-B766-45EB-A5B9-7342B1AED287@r-enthusiasts.com>
Date: 2013-07-04T10:43:20Z
From: Romain Francois
Subject: [Rcpp-devel] Add Vector::containsElementNamed(string) overload?
In-Reply-To: <24E99AB65531B7489F15EFF58F1273070146F885@xchmbbal506.ds.susq.com>
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 <qrd at sig.com> a ?crit :
> 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.
>
> <string-overload-containsElementNamed.patch>
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel