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

Method apply

inst/include/Rcpp/sugar/logical/not.h:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28template <bool NA> struct negate{
29 static inline int apply( int x ){
30 return Rcpp::traits::is_na<LGLSXP>( x ) ? x :
31 ( x ? FALSE : TRUE ) ;
32 }
33} ;
34template<> struct negate<false>{
35 static inline int apply( int x){

Callers

nothing calls this directly

Calls 1

is_na<LGLSXP>Function · 0.85

Tested by

no test coverage detected