[Rcpp-commits] r1061 - pkg/Rcpp/inst/include/Rcpp
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sat Apr 17 20:53:30 CEST 2010
Author: romain
Date: 2010-04-17 20:53:23 +0200 (Sat, 17 Apr 2010)
New Revision: 1061
Modified:
pkg/Rcpp/inst/include/Rcpp/Vector.h
Log:
add support for std::find< CharacterVector::iterator, const char* >
Modified: pkg/Rcpp/inst/include/Rcpp/Vector.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/Vector.h 2010-04-17 12:33:03 UTC (rev 1060)
+++ pkg/Rcpp/inst/include/Rcpp/Vector.h 2010-04-17 18:53:23 UTC (rev 1061)
@@ -2658,6 +2658,10 @@
std::for_each( begin(), end(), op );
}
+ bool operator==( const char* other){
+ return strcmp( begin(), other ) == 0 ;
+ }
+
private:
static std::string buffer ;
More information about the Rcpp-commits
mailing list