File tree Expand file tree Collapse file tree 5 files changed +6
-119
lines changed Expand file tree Collapse file tree 5 files changed +6
-119
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ namespace Rcpp{
160
160
}
161
161
162
162
inline bool not_equal (const STORAGE& lhs, const STORAGE& rhs) {
163
- return ! ::Rcpp::traits::equal_type <STORAGE>()(lhs, rhs);
163
+ return ! ::Rcpp::traits::NAEquals <STORAGE>()(lhs, rhs);
164
164
}
165
165
166
166
bool add_value (int i){
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class Table {
78
78
}
79
79
80
80
private:
81
- typedef RCPP_UNORDERED_MAP<STORAGE, int , ::Rcpp::traits::comparator_type <STORAGE> >HASH ;
81
+ typedef RCPP_UNORDERED_MAP<STORAGE, int , ::Rcpp::traits::NAComparator <STORAGE> >HASH ;
82
82
typedef CountInserter<HASH,STORAGE> Inserter ;
83
83
HASH hash ;
84
84
};
@@ -113,7 +113,7 @@ class Table {
113
113
typedef CountInserter<HASH,STORAGE> Inserter ;
114
114
HASH hash ;
115
115
116
- typedef std::map<STORAGE, int , ::Rcpp::traits::comparator_type <STORAGE> > SORTED_MAP ;
116
+ typedef std::map<STORAGE, int , ::Rcpp::traits::NAComparator <STORAGE> > SORTED_MAP ;
117
117
SORTED_MAP map ;
118
118
119
119
};
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 38
38
#include < Rcpp/traits/storage_type.h>
39
39
#include < Rcpp/traits/r_sexptype_traits.h>
40
40
#include < Rcpp/traits/storage_type.h>
41
- #include < Rcpp/traits/comparator_type.h>
41
+ #include < Rcpp/traits/NAComparator.h>
42
+ #include < Rcpp/traits/NAEquals.h>
42
43
#include < Rcpp/traits/r_type_traits.h>
43
44
#include < Rcpp/traits/un_pointer.h>
44
45
#include < Rcpp/traits/is_pointer.h>
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ class Vector :
247
247
std::sort (
248
248
start,
249
249
start + size (),
250
- typename traits::comparator_type <typename traits::storage_type<RTYPE>::type >()
250
+ typename traits::NAComparator <typename traits::storage_type<RTYPE>::type >()
251
251
) ;
252
252
return *this ;
253
253
}
You can’t perform that action at this time.
0 commit comments