@@ -126,7 +126,7 @@ class sharing_mapt
126
126
typedef sharing_mapt<key_type, mapped_type, hash, key_equal> self_type;
127
127
typedef sharing_nodet<key_type, mapped_type, key_equal> node_type;
128
128
129
- typedef size_t size_type;
129
+ typedef std:: size_t size_type;
130
130
131
131
// / Return type of methods that retrieve a const reference to a value. First
132
132
// / component is a reference to the value (or a dummy value if the given key
@@ -159,13 +159,13 @@ class sharing_mapt
159
159
static const std::string not_found_msg;
160
160
161
161
// / Number of bits in the hash deemed significant
162
- static const size_t bits;
162
+ static const std:: size_t bits;
163
163
164
164
// / Size of a chunk of the hash that represents a character
165
- static const size_t chunk;
165
+ static const std:: size_t chunk;
166
166
167
- static const size_t mask;
168
- static const size_t steps;
167
+ static const std:: size_t mask;
168
+ static const std:: size_t steps;
169
169
170
170
// interface
171
171
@@ -530,9 +530,9 @@ SHARING_MAPT2(, node_type *)::get_container_node(const key_type &k)
530
530
size_t key=hash ()(k);
531
531
node_type *p=↦
532
532
533
- for (unsigned i=0 ; i<steps; i++)
533
+ for (std:: size_t i=0 ; i<steps; i++)
534
534
{
535
- unsigned bit=key&mask;
535
+ std:: size_t bit=key&mask;
536
536
key>>=chunk;
537
537
538
538
p=p->add_child (bit);
@@ -546,9 +546,9 @@ SHARING_MAPT2(const, node_type *)::get_container_node(const key_type &k) const
546
546
size_t key=hash ()(k);
547
547
const node_type *p=↦
548
548
549
- for (unsigned i=0 ; i<steps; i++)
549
+ for (std:: size_t i=0 ; i<steps; i++)
550
550
{
551
- unsigned bit=key&mask;
551
+ std:: size_t bit=key&mask;
552
552
key>>=chunk;
553
553
554
554
p=p->find_child (bit);
@@ -592,14 +592,14 @@ SHARING_MAPT2(, size_type)::erase(
592
592
return 0 ;
593
593
594
594
node_type *del=nullptr ;
595
- unsigned del_bit= 0 ;
595
+ std:: size_t del_bit = 0 ;
596
596
597
597
size_t key=hash ()(k);
598
598
node_type *p=↦
599
599
600
- for (unsigned i=0 ; i<steps; i++)
600
+ for (std:: size_t i=0 ; i<steps; i++)
601
601
{
602
- unsigned bit=key&mask;
602
+ std:: size_t bit=key&mask;
603
603
key>>=chunk;
604
604
605
605
const subt &sub=as_const (p)->get_sub ();
@@ -614,9 +614,9 @@ SHARING_MAPT2(, size_type)::erase(
614
614
615
615
_sm_assert (p->is_container ());
616
616
617
- const containert &c= as_const (p)->get_container ();
617
+ const containert &c = as_const (p)->get_container ();
618
618
619
- if (c.size ()== 1 )
619
+ if (c.size () == 1 )
620
620
{
621
621
del->remove_child (del_bit);
622
622
num--;
@@ -706,8 +706,6 @@ SHARING_MAPT2(, const_find_type)::insert(
706
706
// /
707
707
// / \param k: The key of the element to insert
708
708
// / \param m: The mapped value to insert
709
- // / \param key_exists: Hint to indicate whether the element is known to exist
710
- // / (possible values false or unknown)
711
709
// / \return Pair of reference to existing or newly inserted element, and boolean
712
710
// / indicating if new element was inserted
713
711
SHARING_MAPT2 (, find_type)::place(
@@ -772,8 +770,6 @@ SHARING_MAPT2(, find_type)::find(
772
770
// / - Best case: O(H)
773
771
// /
774
772
// / \param k: The key of the element to search
775
- // / \param key_exists: Hint to indicate whether the element is known to exist
776
- // / (possible values `unknown` or `true`)
777
773
// / \return Pair of const reference to found value (or dummy value if not
778
774
// / found), and boolean indicating if element was found.
779
775
SHARING_MAPT2 (, const_find_type)::find(const key_type &k) const
0 commit comments