[libcxx-commits] [libcxx] [libc++] Implements filebuf unbuffered. (PR #76629)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 12 08:48:18 PDT 2024


================
@@ -337,6 +377,23 @@ private:
 
     return this;
   }
+
+  _LIBCPP_HIDE_FROM_ABI void __try_set_unbuffered_mode() {
----------------
ldionne wrote:

I think it would make sense to inline this function into `__do_open`. I would find it easier to understand the code since it's just a few lines and it's not really a function we could potentially reuse in other places (unlike the version below with arguments).

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


More information about the libcxx-commits mailing list