| //===----------------------------------------------------------------------===// |
| // ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊThe LLVM Compiler Infrastructure |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| // template<class T> class valarray; |
| // end(const valarray<T>& v); |
| const unsigned N = sizeof(a)/sizeof(a[0]); |
| const std::valarray<T> v(a, N); |
| assert(v[v.size()-1] == 5); |
| assert(end(v) - begin(v) == v.size()); |