@@ -132,7 +132,7 @@ class sharing_mapt
132
132
typedef sharing_mapt<key_type, mapped_type, hash, key_equal> self_type;
133
133
typedef sharing_nodet<key_type, mapped_type, key_equal> node_type;
134
134
135
- typedef size_t size_type;
135
+ typedef std:: size_t size_type;
136
136
137
137
// / Return type of methods that retrieve a const reference to a value. First
138
138
// / component is a reference to the value (or a dummy value if the given key
@@ -165,13 +165,13 @@ class sharing_mapt
165
165
static const std::string not_found_msg;
166
166
167
167
// / Number of bits in the hash deemed significant
168
- static const size_t bits;
168
+ static const std:: size_t bits;
169
169
170
170
// / Size of a chunk of the hash that represents a character
171
- static const size_t chunk;
171
+ static const std:: size_t chunk;
172
172
173
- static const size_t mask;
174
- static const size_t steps;
173
+ static const std:: size_t mask;
174
+ static const std:: size_t steps;
175
175
176
176
// interface
177
177
@@ -536,9 +536,9 @@ SHARING_MAPT2(, node_type *)::get_container_node(const key_type &k)
536
536
size_t key=hash ()(k);
537
537
node_type *p=↦
538
538
539
- for (unsigned i= 0 ; i< steps; i++)
539
+ for (std:: size_t i = 0 ; i < steps; i++)
540
540
{
541
- unsigned bit= key& mask;
541
+ std:: size_t bit = key & mask;
542
542
key>>=chunk;
543
543
544
544
p=p->add_child (bit);
@@ -552,9 +552,9 @@ SHARING_MAPT2(const, node_type *)::get_container_node(const key_type &k) const
552
552
size_t key=hash ()(k);
553
553
const node_type *p=↦
554
554
555
- for (unsigned i= 0 ; i< steps; i++)
555
+ for (std:: size_t i = 0 ; i < steps; i++)
556
556
{
557
- unsigned bit= key& mask;
557
+ std:: size_t bit = key & mask;
558
558
key>>=chunk;
559
559
560
560
p=p->find_child (bit);
@@ -598,14 +598,14 @@ SHARING_MAPT2(, size_type)::erase(
598
598
return 0 ;
599
599
600
600
node_type *del=nullptr ;
601
- unsigned del_bit = 0 ;
601
+ std:: size_t del_bit = 0 ;
602
602
603
603
size_t key=hash ()(k);
604
604
node_type *p=↦
605
605
606
- for (unsigned i= 0 ; i< steps; i++)
606
+ for (std:: size_t i = 0 ; i < steps; i++)
607
607
{
608
- unsigned bit= key& mask;
608
+ std:: size_t bit = key & mask;
609
609
key>>=chunk;
610
610
611
611
const subt &sub=as_const (p)->get_sub ();
@@ -712,8 +712,6 @@ SHARING_MAPT2(, const_find_type)::insert(
712
712
// /
713
713
// / \param k: The key of the element to insert
714
714
// / \param m: The mapped value to insert
715
- // / \param key_exists: Hint to indicate whether the element is known to exist
716
- // / (possible values false or unknown)
717
715
// / \return Pair of reference to existing or newly inserted element, and boolean
718
716
// / indicating if new element was inserted
719
717
SHARING_MAPT2 (, find_type)::place(
@@ -778,8 +776,6 @@ SHARING_MAPT2(, find_type)::find(
778
776
// / - Best case: O(H)
779
777
// /
780
778
// / \param k: The key of the element to search
781
- // / \param key_exists: Hint to indicate whether the element is known to exist
782
- // / (possible values `unknown` or `true`)
783
779
// / \return Pair of const reference to found value (or dummy value if not
784
780
// / found), and boolean indicating if element was found.
785
781
SHARING_MAPT2 (, const_find_type)::find(const key_type &k) const
0 commit comments