llvm.org GIT mirror llvm / 54b8d4e
SetVector: add reverse_iterator support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242865 91177308-0d34-0410-b5e6-96231b3b80d8 Richard Smith 4 years ago
1 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
4343 typedef Vector vector_type;
4444 typedef typename vector_type::const_iterator iterator;
4545 typedef typename vector_type::const_iterator const_iterator;
46 typedef typename vector_type::const_reverse_iterator reverse_iterator;
47 typedef typename vector_type::const_reverse_iterator const_reverse_iterator;
4648 typedef typename vector_type::size_type size_type;
4749
4850 /// \brief Construct an empty SetVector
8284 /// \brief Get a const_iterator to the end of the SetVector.
8385 const_iterator end() const {
8486 return vector_.end();
87 }
88
89 /// \brief Get an reverse_iterator to the end of the SetVector.
90 reverse_iterator rbegin() {
91 return vector_.rbegin();
92 }
93
94 /// \brief Get a const_reverse_iterator to the end of the SetVector.
95 const_reverse_iterator rbegin() const {
96 return vector_.rbegin();
97 }
98
99 /// \brief Get a reverse_iterator to the beginning of the SetVector.
100 reverse_iterator rend() {
101 return vector_.rend();
102 }
103
104 /// \brief Get a const_reverse_iterator to the beginning of the SetVector.
105 const_reverse_iterator rend() const {
106 return vector_.rend();
85107 }
86108
87109 /// \brief Return the last element of the SetVector.