MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / CharacterVector_test_equality

Function CharacterVector_test_equality

inst/tinytest/cpp/Vector.cpp:873–879  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

871
872// [[Rcpp::export]]
873bool CharacterVector_test_equality(CharacterVector x, CharacterVector y) {
874 if (x.length() != y.length()) {
875 return false;
876 }
877
878 return std::equal(x.begin(), x.end(), y.begin());
879}
880
881// [[Rcpp::export]]
882bool CharacterVector_test_equality_crosspolicy(CharacterVector x, Vector<STRSXP,NoProtectStorage> y) {

Callers

nothing calls this directly

Calls 3

lengthMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected