//===----------------------------------------------------------------------===// // // 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 // //===----------------------------------------------------------------------===// // REQUIRES: std-at-least-c++26 // constant_wrapper // template // cw-fixed-value(T (&)[Extent]) -> cw-fixed-value; // exposition only #include #include constexpr int arr[] = {1, 2, 3}; using T1 = std::constant_wrapper; static_assert(std::is_same_v); using T2 = std::constant_wrapper<"hello world">; static_assert(std::is_same_v); struct S { int value; }; constexpr S s[] = {{1}, {2}, {3}}; using T3 = std::constant_wrapper; static_assert(std::is_same_v);