1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // template <class C> auto end(const C& c) -> decltype(c.end());
16 #include "test_macros.h"
21 const std::vector
<int> v(ia
, ia
+ sizeof(ia
)/sizeof(ia
[0]));
22 std::vector
<int>::const_iterator i
= end(v
);
23 assert(i
== v
.cend());