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 10 // UNSUPPORTED: libcpp-no-concepts 11 // UNSUPPORTED: libcpp-has-no-incomplete-ranges 12 13 // clang-cl and cl currently don't support [[no_unique_address]] 14 // XFAIL: msvc 15 16 // [algorithms.results]/1 17 // Each of the class templates specified in this subclause has the template parameters, 18 // data members, and special members specified below, and has no base classes or members 19 // other than those specified. 20 21 #include <algorithm> 22 23 struct Empty {}; 24 25 static_assert(sizeof(std::ranges::in_in_result<Empty, int>) == sizeof(int)); 26 static_assert(sizeof(std::ranges::in_in_result<int, Empty>) == sizeof(int)); 27 static_assert(sizeof(std::ranges::in_in_result<Empty, Empty>) == 2 * sizeof(Empty)); 28