diff mbox

[v3] Minor tweak to _Hashtable

Message ID 4CDA8047.3080106@oracle.com
State New
Headers show

Commit Message

Paolo Carlini Nov. 10, 2010, 11:21 a.m. UTC
Hi,

tested x86_64-linux, committed.

Paolo.

//////////////////////
2010-11-10  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/hashtable.h (_Hashtable<>::_Insert_Conv_Type,
	_Hashtable<>::_Insert_Return_Type): Change to private.
diff mbox

Patch

Index: include/bits/hashtable.h
===================================================================
--- include/bits/hashtable.h	(revision 166527)
+++ include/bits/hashtable.h	(working copy)
@@ -362,7 +362,7 @@ 
       equal_range(const key_type& __k) const;
 
     private:
-      // Find, insert and erase helper functions
+      // Find and insert helper functions and types
       _Node*
       _M_find_node(_Node*, const key_type&,
 		   typename _Hashtable::_Hash_code_type) const;
@@ -380,8 +380,6 @@ 
         iterator
         _M_insert(_Pair&&, std::false_type);
 
-    public:
-      // Insert and erase
       typedef typename std::conditional<__unique_keys,
 					std::pair<iterator, bool>,
 					iterator>::type
@@ -393,6 +391,8 @@ 
                                    >::type
         _Insert_Conv_Type;
 
+    public:
+      // Insert and erase
       _Insert_Return_Type
       insert(const value_type& __v)
       { return _M_insert(__v, std::integral_constant<bool, __unique_keys>()); }