summaryrefslogtreecommitdiffstats
path: root/include/__hash_table
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-02-18 00:20:34 +0000
committerEric Fiselier <eric@efcs.ca>2016-02-18 00:20:34 +0000
commit0493d020fc4bb236b716765a0f08be7d8354fc88 (patch)
treeb7acadb09a5ca463c07fc443ac51234066bf5e54 /include/__hash_table
parent7e87bc9c67c393c792a0e6bf82e84d9b00b4b169 (diff)
downloadexternal_libcxx-0493d020fc4bb236b716765a0f08be7d8354fc88.tar.gz
external_libcxx-0493d020fc4bb236b716765a0f08be7d8354fc88.tar.bz2
external_libcxx-0493d020fc4bb236b716765a0f08be7d8354fc88.zip
Get <ext/hash_map> working again
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@261180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/__hash_table')
-rw-r--r--include/__hash_table8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/__hash_table b/include/__hash_table
index b358d9487..87709a3c5 100644
--- a/include/__hash_table
+++ b/include/__hash_table
@@ -380,10 +380,12 @@ class _LIBCPP_TYPE_VIS_ONLY __hash_const_iterator
static_assert(!is_const<typename pointer_traits<_NodePtr>::element_type>::value, "");
typedef __hash_node_types<_NodePtr> _NodeTypes;
typedef _NodePtr __node_pointer;
- typedef __hash_iterator<_NodePtr> __non_const_iterator;
+
__node_pointer __node_;
public:
+ typedef __hash_iterator<_NodePtr> __non_const_iterator;
+
typedef forward_iterator_tag iterator_category;
typedef typename _NodeTypes::__node_value_type value_type;
typedef typename _NodeTypes::difference_type difference_type;
@@ -655,10 +657,10 @@ class _LIBCPP_TYPE_VIS_ONLY __hash_const_local_iterator
typedef typename remove_const<__node>::type __non_const_node;
typedef typename __rebind_pointer<__node_pointer, __non_const_node>::type
__non_const_node_pointer;
-
+public:
typedef __hash_local_iterator<__non_const_node_pointer>
__non_const_iterator;
-public:
+
typedef forward_iterator_tag iterator_category;
typedef typename _NodeTypes::__node_value_type value_type;
typedef typename _NodeTypes::difference_type difference_type;