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 // An array is a contiguous container
16 #include "test_macros.h"
19 void test_contiguous ( const C
&c
)
21 for ( size_t i
= 0; i
< c
.size(); ++i
)
22 assert ( *(c
.begin() + i
) == *(std::addressof(*c
.begin()) + i
));
29 typedef std::array
<T
, 3> C
;
30 test_contiguous (C());