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

Function integer_erase_range_2

inst/tinytest/cpp/Vector.cpp:225–235  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

223
224// [[Rcpp::export]]
225List integer_erase_range_2( IntegerVector x, IntegerVector y ){
226 IntegerVector::iterator it = x.begin()+1 ;
227 while( it != x.end() ){
228 it = x.erase(it) ;
229 }
230 it = y.begin() + 1 ;
231 while( it != y.end() ){
232 it = y.erase(it) ;
233 }
234 return List::create( x, y ) ;
235}
236
237// [[Rcpp::export]]
238List List_erase_range_2( List x, List y ){

Callers

nothing calls this directly

Calls 3

eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected