Rcpp Version 1.0.9
r_binary_op.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Rcpp
 Rcpp API.
 
 Rcpp::sugar
 

Macros

#define RCPP_OP(NAME, OP)
 

Macro Definition Documentation

◆ RCPP_OP

#define RCPP_OP (   NAME,
  OP 
)
Value:
template <int RTYPE> \
class NAME { \
public: \
typedef typename traits::storage_type<RTYPE>::type STORAGE ; \
inline int operator()( STORAGE lhs, STORAGE rhs) const { \
return lhs OP rhs ; \
} \
} ;

Definition at line 29 of file r_binary_op.h.