| //===----------------------------------------------------------------------===// |
| // The LLVM Compiler Infrastructure |
| // This file is dual licensed under the MIT and the University of Illinois Open |
| // Source Licenses. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| // const_iterator begin() const; |
| // const_iterator end() const; |
| // const_iterator cbegin() const; |
| // const_iterator cend() const; |
| typedef std::vector<T> C; |
| C::iterator i = c.begin(); |
| assert(std::distance(i, j) == 0); |
| typedef std::vector<T> C; |
| C::const_iterator i = c.begin(); |
| C::const_iterator j = c.end(); |
| assert(std::distance(i, j) == 0); |
| typedef std::vector<T> C; |
| C::const_iterator i = c.cbegin(); |
| C::const_iterator j = c.cend(); |
| assert(std::distance(i, j) == 0); |
| typedef std::vector<T> C; |