//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++03, c++11, c++14, c++17, c++20 // // std::ranges::chunk_by_view::() = default; #include #include #include #include #include #include "../types.h" #include "test_iterators.h" template constexpr void testDefaultConstructible() { // Make sure the iterator is default constructible. using ChunkByView = std::ranges::chunk_by_view, std::ranges::less_equal>; using ChunkByIterator = std::ranges::iterator_t; ChunkByIterator i{}; ChunkByIterator j; assert(i == j); static_assert(noexcept(ChunkByIterator{}) == IsNoexcept); } constexpr bool tests() { testDefaultConstructible, /*IsNoexcept=*/false>(); testDefaultConstructible, /*IsNoexcept=*/false>(); testDefaultConstructible, /*IsNoexcept=*/false>(); testDefaultConstructible, /*IsNoexcept=*/false>(); testDefaultConstructible(); return true; } int main(int, char**) { tests(); static_assert(tests()); return 0; }