1
0
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:
Dan Gohman 2008-05-30 22:37:47 +00:00
parent 65cfda30bd
commit b67e96f3aa

View File

@ -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