15a3309f8SChristopher Di Bella //===----------------------------------------------------------------------===//
25a3309f8SChristopher Di Bella //
35a3309f8SChristopher Di Bella // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
45a3309f8SChristopher Di Bella // See https://llvm.org/LICENSE.txt for license information.
55a3309f8SChristopher Di Bella // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
65a3309f8SChristopher Di Bella //
75a3309f8SChristopher Di Bella //===----------------------------------------------------------------------===//
85a3309f8SChristopher Di Bella 
95a3309f8SChristopher Di Bella // UNSUPPORTED: c++03, c++11, c++14, c++17
1071909de3SMark de Wever // UNSUPPORTED: libcpp-has-no-incomplete-ranges
115a3309f8SChristopher Di Bella 
125a3309f8SChristopher Di Bella // string
135a3309f8SChristopher Di Bella 
145a3309f8SChristopher Di Bella #include <string>
155a3309f8SChristopher Di Bella 
165a3309f8SChristopher Di Bella #include <concepts>
175a3309f8SChristopher Di Bella #include <ranges>
185a3309f8SChristopher Di Bella 
195a3309f8SChristopher Di Bella 
207c177315SChristopher Di Bella 
219d7c420aSLouis Dionne static_assert(std::same_as<std::ranges::iterator_t<std::string>, std::string::iterator>);
229d7c420aSLouis Dionne static_assert(std::ranges::common_range<std::string>);
239d7c420aSLouis Dionne static_assert(std::ranges::random_access_range<std::string>);
249d7c420aSLouis Dionne static_assert(std::ranges::contiguous_range<std::string>);
259d7c420aSLouis Dionne static_assert(!std::ranges::view<std::string>);
269d7c420aSLouis Dionne static_assert(std::ranges::sized_range<std::string>);
279d7c420aSLouis Dionne static_assert(!std::ranges::borrowed_range<std::string>);
28*67151d02SArthur O'Dwyer static_assert(std::ranges::viewable_range<std::string>);
299d7c420aSLouis Dionne 
309d7c420aSLouis Dionne static_assert(std::same_as<std::ranges::iterator_t<std::string const>, std::string::const_iterator>);
319d7c420aSLouis Dionne static_assert(std::ranges::common_range<std::string const>);
329d7c420aSLouis Dionne static_assert(std::ranges::random_access_range<std::string const>);
339d7c420aSLouis Dionne static_assert(std::ranges::contiguous_range<std::string const>);
349d7c420aSLouis Dionne static_assert(!std::ranges::view<std::string const>);
359d7c420aSLouis Dionne static_assert(std::ranges::sized_range<std::string const>);
369d7c420aSLouis Dionne static_assert(!std::ranges::borrowed_range<std::string const>);
379d7c420aSLouis Dionne static_assert(!std::ranges::viewable_range<std::string const>);
38