[libcxx-commits] [libcxx] [libc++] Optimize ofstream::write (PR #123337)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 26 08:30:09 PST 2025


================
@@ -0,0 +1,136 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS
+// UNSUPPORTED: c++03
+
+// <fstream>
+
+#include <algorithm>
+#include <cassert>
+#include <codecvt>
+#include <fstream>
+#include <locale>
+#include <vector>
+
+#include "platform_support.h"
----------------
ldionne wrote:

Do we need that include?

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


More information about the libcxx-commits mailing list