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

Method check_index

inst/include/Rcpp/vector/traits.h:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 private:
54
55 void check_index(R_xlen_t i) const {
56#ifndef RCPP_NO_BOUNDS_CHECK
57 if (i >= size) {
58 warning("subscript out of bounds (index %s >= vector size %s)", i, size); // #nocov
59 }
60#endif
61 }
62
63 iterator start ;
64 R_xlen_t size ;

Callers

nothing calls this directly

Calls 1

warningFunction · 0.85

Tested by

no test coverage detected