[libcxx-commits] [PATCH] D102135: [libcxx][ranges] adds _`copyable-box`_

Tim Song via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 1 21:17:43 PDT 2021


tcanens added inline comments.


================
Comment at: libcxx/include/__ranges/copyable_box.h:137-138
+      if (this != _VSTD::addressof(__other)) {
+        _VSTD::destroy_at(&__val_);
+        _VSTD::construct_at(&__val_, __other.__val_);
+      }
----------------



================
Comment at: libcxx/include/__ranges/copyable_box.h:146-147
+      if (this != _VSTD::addressof(__other)) {
+        _VSTD::destroy_at(&__val_);
+        _VSTD::construct_at(&__val_, _VSTD::move(__other.__val_));
+      }
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102135/new/

https://reviews.llvm.org/D102135



More information about the libcxx-commits mailing list