Makes it easier to migrate existing code that uses std::set.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm/ADT/SmallSet.h | ||
---|---|---|
264 | nit: the whole remainder of the function could just be something like // All elements in LHS must also be in RHS return all_of(LHS, [&RHS](T &E) {return RHS.count(E); }); |
Comment Actions
LGTM, with the optional nit.
Given that we already have operator== implemented for other containers with similar complexity, adding it to smallset should be fine.
nit: the whole remainder of the function could just be something like