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// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
10
11// iterator() = default;
12
13#include <ranges>
14#include <type_traits>
15
16constexpr bool test() {
17 using Iter = std::ranges::iterator_t<std::ranges::repeat_view<int>>;
18 static_assert(std::is_default_constructible_v<Iter>);
19 [[maybe_unused]] Iter iter;
20
21 return true;
22}
23
24int main(int, char**) {
25 test();
26 static_assert(test());
27
28 return 0;
29}
30

source code of libcxx/test/std/ranges/range.factories/range.repeat.view/iterator/ctor.default.pass.cpp