22#ifndef Rcpp__sugar__unique_h
23#define Rcpp__sugar__unique_h
28template <
typename HASH>
36 return hash.contains(value) ;
43template <
int RTYPE,
typename TABLE_T>
64template <
int RTYPE,
bool NA,
typename T>
71template <
int RTYPE,
bool NA,
typename T>
76template <
int RTYPE,
bool NA,
typename T,
bool RHS_NA,
typename RHS_T>
Vector & sort(bool decreasing=false)
int operator()(STORAGE value)
sugar::IndexHash< RTYPE > HASH
LogicalVector get(const T &x) const
Vector< RTYPE > keys() const
LogicalVector in(const VectorBase< RTYPE, NA, T > &x, const VectorBase< RTYPE, RHS_NA, RHS_T > &table)
Vector< LGLSXP > LogicalVector
IntegerVector table(const VectorBase< RTYPE, NA, T > &x)
Vector< RTYPE > unique(const VectorBase< RTYPE, NA, T > &t)
Vector< RTYPE > sort_unique(const VectorBase< RTYPE, NA, T > &t, bool decreasing=false)