summaryrefslogtreecommitdiff
path: root/include/memory
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2015-05-10 13:14:08 +0000
committerMarshall Clow <mclow.lists@gmail.com>2015-05-10 13:14:08 +0000
commitdbaf7a0d31ac7d5e3121686f1e771d558d62a34b (patch)
tree6fe2dd5a9e15cc5a3f6b33e1209ddb8d8d7f9594 /include/memory
parentd20675f97079410e6a2685630f490b75ffe855f5 (diff)
Fix for LWG2454: Add raw_storage_iterator::base() member
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@236948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/memory')
-rw-r--r--include/memory3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/memory b/include/memory
index 93e8f6737..3f7ea1a2b 100644
--- a/include/memory
+++ b/include/memory
@@ -1855,6 +1855,9 @@ public:
_LIBCPP_INLINE_VISIBILITY raw_storage_iterator& operator++() {++__x_; return *this;}
_LIBCPP_INLINE_VISIBILITY raw_storage_iterator operator++(int)
{raw_storage_iterator __t(*this); ++__x_; return __t;}
+#if _LIBCPP_STD_VER >= 14
+ _LIBCPP_INLINE_VISIBILITY _OutputIterator base() const { return __x_; }
+#endif
};
template <class _Tp>