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

Function wrap_dispatch_unknown_iterable__logical

inst/include/Rcpp/internal/wrap.h:533–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531
532 template <typename T>
533 inline SEXP wrap_dispatch_unknown_iterable__logical(const T& object, ::Rcpp::traits::true_type) {
534 RCPP_DEBUG_1("wrap_dispatch_unknown_iterable__logical<%s>(., true )", DEMANGLE(T))
535 size_t size = object.size();
536 Shield<SEXP> x(Rf_allocVector(LGLSXP, size));
537 std::copy(object.begin(), object.end(), LOGICAL(x));
538 return x;
539 }
540
541 template <typename T>
542 inline SEXP wrap_range_sugar_expression(const T& object, Rcpp::traits::false_type) {

Calls 4

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected