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// REQUIRES: std-at-least-c++23
10
11// <ranges>
12
13// sentinel() = default;
14
15#include <ranges>
16
17#include "../types.h"
18
19constexpr bool test() {
20 using Inner = BasicVectorView<char, ViewProperties{.common = false}, forward_iterator>;
21 using V = BasicVectorView<Inner, ViewProperties{}, forward_iterator>;
22 using Pattern = Inner;
23 using JWV = std::ranges::join_with_view<V, Pattern>;
24 static_assert(!std::ranges::common_range<JWV>);
25
26 [[maybe_unused]] std::ranges::sentinel_t<JWV> se;
27 [[maybe_unused]] std::ranges::sentinel_t<const JWV> cse;
28
29 return true;
30}
31
32int main(int, char**) {
33 test();
34 static_assert(test());
35
36 return 0;
37}
38

source code of libcxx/test/std/ranges/range.adaptors/range.join.with/range.join.with.sentinel/ctor.default.pass.cpp