mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01: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;
|
return true;
|
||||||
}
|
}
|
||||||
bool operator!=(const SmallVectorImpl &RHS) const { return !(*this == RHS); }
|
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:
|
private:
|
||||||
/// isSmall - Return true if this is a smallvector which has not had dynamic
|
/// isSmall - Return true if this is a smallvector which has not had dynamic
|
||||||
|
Loading…
Reference in New Issue
Block a user