| 81 | |
| 82 | template <int RTYPE, bool NA, typename T> |
| 83 | inline sugar::Clamp_Primitive_Vector_Primitive<RTYPE,NA,T> |
| 84 | clamp( |
| 85 | typename Rcpp::traits::storage_type<RTYPE>::type lhs, |
| 86 | const Rcpp::VectorBase<RTYPE,NA,T>& vec, |
| 87 | typename Rcpp::traits::storage_type<RTYPE>::type rhs |
| 88 | ){ |
| 89 | return sugar::Clamp_Primitive_Vector_Primitive<RTYPE,NA,T>( lhs, vec.get_ref(), rhs ) ; |
| 90 | } |
| 91 | |
| 92 | |
| 93 | } // Rcpp |