[libcxx-commits] [PATCH] D79323: Remove unused _LIBCPP_RAW_ITERATORS

Marcel Hlopko via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon May 4 05:18:21 PDT 2020


hlopko created this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
hlopko added a reviewer: EricWF.
hlopko added a subscriber: gribozavr2.

This change removes seemingly unused _LIBCPP_RAW_ITERATORS.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79323

Files:
  libcxx/include/string


Index: libcxx/include/string
===================================================================
--- libcxx/include/string
+++ libcxx/include/string
@@ -691,13 +691,8 @@
     static_assert(( is_same<typename allocator_type::value_type, value_type>::value),
                   "Allocator::value_type must be same type as value_type");
 
-#if defined(_LIBCPP_RAW_ITERATORS)
-    typedef pointer                                      iterator;
-    typedef const_pointer                                const_iterator;
-#else  // defined(_LIBCPP_RAW_ITERATORS)
     typedef __wrap_iter<pointer>                         iterator;
     typedef __wrap_iter<const_pointer>                   const_iterator;
-#endif  // defined(_LIBCPP_RAW_ITERATORS)
     typedef _VSTD::reverse_iterator<iterator>             reverse_iterator;
     typedef _VSTD::reverse_iterator<const_iterator>       const_reverse_iterator;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79323.261785.patch
Type: text/x-patch
Size: 903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200504/e85e775a/attachment.bin>


More information about the libcxx-commits mailing list