Rcpp Version 0.9.10
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

Defines

#define RCPP_OP(NAME, OP)

Define Documentation

#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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines