mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 00:16:25 +00:00
Add an operator< for SmallVector.
llvm-svn: 51791
This commit is contained in:
parent
65cfda30bd
commit
b67e96f3aa
@ -307,6 +307,11 @@ public:
|
||||
return true;
|
||||
}
|
||||
bool operator!=(const SmallVectorImpl &RHS) const { return !(*this == RHS); }
|
||||
|
||||
bool operator<(const SmallVectorImpl &RHS) const {
|
||||
return std::lexicographical_compare(begin(), end(),
|
||||
RHS.begin(), RHS.end());
|
||||
}
|
||||
|
||||
private:
|
||||
/// isSmall - Return true if this is a smallvector which has not had dynamic
|
||||
|
Loading…
Reference in New Issue
Block a user