22 #ifndef Rcpp__sugar__is_nan_h
23 #define Rcpp__sugar__is_nan_h
28 template <
int RTYPE,
bool NA,
typename VEC_TYPE>
35 return ::Rcpp::traits::is_nan<RTYPE>(
obj[i] ) ;
38 inline R_xlen_t
size()
const {
return obj.size() ; }
48 template <
int RTYPE,
bool NA,
typename T>
int operator[](R_xlen_t i) const
IsNaN(const VEC_TYPE &obj_)
sugar::IsNaN< RTYPE, NA, T > is_nan(const Rcpp::VectorBase< RTYPE, NA, T > &t)