[libcxx-commits] [libcxx] WIP [libc++][string] P3044R2: sub-`string_view` from `string` (PR #147095)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 5 00:47:22 PDT 2025


================
@@ -0,0 +1,20 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+
+// <string_view>
+
+// constexpr basic_string_view subview(size_type pos = 0,
+//                                     size_type n = npos) const;      // freestanding-deleted
+
+int main(int, char**) {
+  // This test is intentionally empty because subview is an alias for substr
+  // and is tested in substr.pass.cpp.
----------------
frederick-vs-ja wrote:

Looks like we don't need this file.

https://github.com/llvm/llvm-project/pull/147095


More information about the libcxx-commits mailing list