[libcxx-commits] [PATCH] D110198: [libc++] Fix __wrap_iter to be a proper contiguous iterator.

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 21 16:44:13 PDT 2021


Quuxplusone added inline comments.


================
Comment at: libcxx/include/__iterator/wrap_iter.h:300
+private:
+    struct __nat {};
+public:
----------------
jloser wrote:
> Question: can you explain where the naming comes from/what it stands for? I see precedence for this naming in `type_traits`, so it's fine as-is given its use below, but just curious.
I believe `__nat` stands for "Not A Type."
The shape of this specialization was all just copied from the `pointer_traits<_Tp*>` specialization, btw.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110198



More information about the libcxx-commits mailing list