1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Implement new SmallVector::data() methods.

llvm-svn: 72209
This commit is contained in:
Jay Foad 2009-05-21 09:00:37 +00:00
parent fc28858d91
commit 2ca356aa76

View File

@ -374,6 +374,16 @@ public:
return I;
}
/// data - Return a pointer to the vector's buffer, even if empty().
pointer data() {
return pointer(Begin);
}
/// data - Return a pointer to the vector's buffer, even if empty().
const_pointer data() const {
return const_pointer(Begin);
}
const SmallVectorImpl &operator=(const SmallVectorImpl &RHS);
bool operator==(const SmallVectorImpl &RHS) const {