1//===----------------------------------------------------------------------===//
2//
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
6//
7//===----------------------------------------------------------------------===//
8
9// <vector>
10
11#include <vector>
12#include <type_traits>
13
14#include "test_allocator.h"
15#include "test_macros.h"
16
17static_assert(!std::is_default_constructible<std::vector<bool>::reference>::value, "");
18static_assert(!std::is_default_constructible<std::vector<bool, test_allocator<bool> >::reference>::value, "");
19
20#if TEST_STD_VER >= 11
21void test_no_ambiguity_among_default_constructors(std::enable_if<false>);
22void test_no_ambiguity_among_default_constructors(std::vector<bool>::reference);
23void test_no_ambiguity_among_default_constructors(std::vector<bool, test_allocator<bool>>::reference);
24
25ASSERT_SAME_TYPE(decltype(test_no_ambiguity_among_default_constructors({})), void);
26#endif
27

source code of libcxx/test/std/containers/sequences/vector.bool/reference/ctor_no_default.compile.pass.cpp