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

Method Range

inst/include/Rcpp/sugar/Range.h:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 class Range : public VectorBase<INTSXP,false, Range >{
28 public:
29 Range( R_xlen_t start_, R_xlen_t end__ ) : start(start_), end_(end__){
30 if( start_ > end__ ){
31 throw std::range_error( "upper value must be greater than lower value" ) ;
32 }
33 }
34
35 inline R_xlen_t size() const{
36 return end_ - start + 1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected