Differential Revision: https://reviews.llvm.org/D27262
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297398
91177308-0d34-0410-b5e6-
96231b3b80d8
return vector_.rend();
}
+ /// \brief Return the first element of the SetVector.
+ const T &front() const {
+ assert(!empty() && "Cannot call front() on empty SetVector!");
+ return vector_.front();
+ }
+
/// \brief Return the last element of the SetVector.
const T &back() const {
assert(!empty() && "Cannot call back() on empty SetVector!");