summaryrefslogtreecommitdiffstats
path: root/libcxx/include/list
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2013-08-05 21:23:28 +0000
committerMarshall Clow <mclow.lists@gmail.com>2013-08-05 21:23:28 +0000
commit0c37cfd8b87a21def1ae0b0fa9a09acf708ce97c (patch)
tree0ddc0e2734071bbf54b74f6fc2b6ea6c9fa4fddb /libcxx/include/list
parent6964f33fc91423a0ba3b648c7aad070eb6d610b9 (diff)
downloadbcm5719-llvm-0c37cfd8b87a21def1ae0b0fa9a09acf708ce97c.tar.gz
bcm5719-llvm-0c37cfd8b87a21def1ae0b0fa9a09acf708ce97c.zip
Implement NULL iterators for <list> re: N3644
llvm-svn: 187740
Diffstat (limited to 'libcxx/include/list')
-rw-r--r--libcxx/include/list4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/list b/libcxx/include/list
index 4041b88d6b1..4b1272a8ea4 100644
--- a/libcxx/include/list
+++ b/libcxx/include/list
@@ -273,7 +273,7 @@ public:
typedef typename pointer_traits<pointer>::difference_type difference_type;
_LIBCPP_INLINE_VISIBILITY
- __list_iterator() _NOEXCEPT
+ __list_iterator() _NOEXCEPT : __ptr_(nullptr)
{
#if _LIBCPP_DEBUG_LEVEL >= 2
__get_db()->__insert_i(this);
@@ -403,7 +403,7 @@ public:
typedef typename pointer_traits<pointer>::difference_type difference_type;
_LIBCPP_INLINE_VISIBILITY
- __list_const_iterator() _NOEXCEPT
+ __list_const_iterator() _NOEXCEPT : __ptr_(nullptr)
{
#if _LIBCPP_DEBUG_LEVEL >= 2
__get_db()->__insert_i(this);
OpenPOWER on IntegriCloud