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

Method SetDiff

inst/include/Rcpp/sugar/functions/setdiff.h:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 typedef typename Rcpp::traits::storage_type<RTYPE>::type STORAGE ;
47
48 SetDiff( const LHS_T& lhs, const RHS_T& rhs) :
49 lhs_set( get_const_begin(lhs), get_const_end(lhs) ),
50 rhs_set( get_const_begin(rhs), get_const_end(rhs) )
51 {
52
53 std::for_each( rhs_set.begin(), rhs_set.end(), RemoveFromSet<SET>(lhs_set) ) ;
54 }
55
56 Vector<RTYPE> get() const {
57 R_xlen_t n = lhs_set.size() ;

Callers

nothing calls this directly

Calls 4

get_const_beginFunction · 0.85
get_const_endFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected