Rcpp Version 1.1.2
Loading...
Searching...
No Matches
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

namespace  Rcpp
 Rcpp API.
namespace  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.