OSDN Git Service

2006-09-27 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / include / ext / pb_ds / detail / gp_hash_table_map_ / gp_ht_map_.hpp
1 // -*- C++ -*-
2
3 // Copyright (C) 2005, 2006 Free Software Foundation, Inc.
4 //
5 // This file is part of the GNU ISO C++ Library.  This library is free
6 // software; you can redistribute it and/or modify it under the terms
7 // of the GNU General Public License as published by the Free Software
8 // Foundation; either version 2, or (at your option) any later
9 // version.
10
11 // This library is distributed in the hope that it will be useful, but
12 // WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // General Public License for more details.
15
16 // You should have received a copy of the GNU General Public License
17 // along with this library; see the file COPYING.  If not, write to
18 // the Free Software Foundation, 59 Temple Place - Suite 330, Boston,
19 // MA 02111-1307, USA.
20
21 // As a special exception, you may use this file as part of a free
22 // software library without restriction.  Specifically, if other files
23 // instantiate templates or use macros or inline functions from this
24 // file, or you compile this file and link it with other files to
25 // produce an executable, this file does not by itself cause the
26 // resulting executable to be covered by the GNU General Public
27 // License.  This exception does not however invalidate any other
28 // reasons why the executable file might be covered by the GNU General
29 // Public License.
30
31 // Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
32
33 // Permission to use, copy, modify, sell, and distribute this software
34 // is hereby granted without fee, provided that the above copyright
35 // notice appears in all copies, and that both that copyright notice
36 // and this permission notice appear in supporting documentation. None
37 // of the above authors, nor IBM Haifa Research Laboratories, make any
38 // representation about the suitability of this software for any
39 // purpose. It is provided "as is" without express or implied
40 // warranty.
41
42 /**
43  * @file gp_ht_map_.hpp
44  * Contains an implementation class for gp_ht_map_.
45  */
46
47 #include <ext/pb_ds/tag_and_trait.hpp>
48 #include <ext/pb_ds/detail/hash_fn/ranged_probe_fn.hpp>
49 #include <ext/pb_ds/detail/types_traits.hpp>
50 #include <ext/pb_ds/exception.hpp>
51 #include <ext/pb_ds/detail/eq_fn/hash_eq_fn.hpp>
52 #include <utility>
53 #ifdef PB_DS_HT_MAP_TRACE_
54 #include <iostream>
55 #endif 
56 #ifdef _GLIBCXX_DEBUG
57 #include <ext/pb_ds/detail/map_debug_base.hpp>
58 #endif
59 #include <debug/debug.h>
60
61 namespace pb_ds
62 {
63   namespace detail
64   {
65 #define PB_DS_CLASS_T_DEC \
66     template<typename Key, typename Mapped, typename Hash_Fn, typename Eq_Fn, \
67              typename Allocator, bool Store_Hash, typename Comb_Probe_Fn, \
68              typename Probe_Fn, typename Resize_Policy>
69
70 #ifdef PB_DS_DATA_TRUE_INDICATOR
71 #define PB_DS_CLASS_NAME gp_ht_map_data_
72 #endif
73
74 #ifdef PB_DS_DATA_FALSE_INDICATOR
75 #define PB_DS_CLASS_NAME gp_ht_map_no_data_
76 #endif 
77
78 #define PB_DS_CLASS_C_DEC \
79     PB_DS_CLASS_NAME<Key, Mapped, Hash_Fn, Eq_Fn, Allocator,    \
80                      Store_Hash, Comb_Probe_Fn, Probe_Fn, Resize_Policy>
81
82 #define PB_DS_HASH_EQ_FN_C_DEC \
83     hash_eq_fn<Key, Eq_Fn, Allocator, Store_Hash>
84
85 #define PB_DS_RANGED_PROBE_FN_C_DEC \
86     ranged_probe_fn<Key, Hash_Fn, Allocator, Comb_Probe_Fn, Probe_Fn, Store_Hash>
87
88 #define PB_DS_TYPES_TRAITS_C_DEC \
89     types_traits<Key, Mapped, Allocator, Store_Hash>
90
91 #ifdef _GLIBCXX_DEBUG
92 #define PB_DS_MAP_DEBUG_BASE_C_DEC \
93     map_debug_base<Key, Eq_Fn, typename Allocator::template rebind<Key>::other::const_reference>
94 #endif 
95
96 #ifdef PB_DS_DATA_TRUE_INDICATOR
97 #define PB_DS_V2F(X) (X).first
98 #define PB_DS_V2S(X) (X).second
99 #endif 
100
101 #ifdef PB_DS_DATA_FALSE_INDICATOR
102 #define PB_DS_V2F(X) (X)
103 #define PB_DS_V2S(X) Mapped()
104 #endif 
105
106 #define PB_DS_STATIC_ASSERT(UNIQUE, E) \
107     typedef static_assert_dumclass<sizeof(static_assert<(bool)(E)>)> \
108     UNIQUE##static_assert_type
109
110     template<typename Key,
111              typename Mapped,
112              typename Hash_Fn,
113              typename Eq_Fn,
114              typename Allocator,
115              bool Store_Hash,
116              typename Comb_Probe_Fn,
117              typename Probe_Fn,
118              typename Resize_Policy>
119     class PB_DS_CLASS_NAME :
120 #ifdef _GLIBCXX_DEBUG
121       protected PB_DS_MAP_DEBUG_BASE_C_DEC,
122 #endif 
123       public PB_DS_HASH_EQ_FN_C_DEC,
124       public Resize_Policy,
125       public PB_DS_RANGED_PROBE_FN_C_DEC,
126       public PB_DS_TYPES_TRAITS_C_DEC
127     {
128     private:
129       typedef PB_DS_TYPES_TRAITS_C_DEC traits_base;
130       typedef typename traits_base::store_extra_false_type store_hash_false_type;
131       typedef typename traits_base::store_extra_true_type store_hash_true_type;
132       typedef typename traits_base::value_type value_type_;
133       typedef typename traits_base::pointer pointer_;
134       typedef typename traits_base::const_pointer const_pointer_;
135       typedef typename traits_base::reference reference_;
136       typedef typename traits_base::const_reference const_reference_;
137       typedef typename traits_base::comp_hash comp_hash;
138
139       enum entry_status
140         {
141           empty_entry_status,
142           valid_entry_status,
143           erased_entry_status
144         } __attribute__ ((packed));
145
146       struct entry : public traits_base::stored_value_type
147       {
148         entry_status m_stat;
149       };
150
151       typedef typename Allocator::template rebind<entry>::other entry_allocator;
152       typedef typename entry_allocator::pointer entry_pointer;
153       typedef typename entry_allocator::const_pointer const_entry_pointer;
154       typedef typename entry_allocator::reference entry_reference;
155       typedef typename entry_allocator::const_reference const_entry_reference;
156       typedef typename entry_allocator::pointer entry_array;
157
158       typedef PB_DS_RANGED_PROBE_FN_C_DEC ranged_probe_fn_base;
159
160 #ifdef _GLIBCXX_DEBUG
161       typedef PB_DS_MAP_DEBUG_BASE_C_DEC map_debug_base;
162 #endif 
163
164       typedef PB_DS_HASH_EQ_FN_C_DEC hash_eq_fn_base;
165       typedef Resize_Policy resize_base;
166
167 #define PB_DS_GEN_POS typename Allocator::size_type
168
169 #include <ext/pb_ds/detail/unordered_iterator/const_point_iterator.hpp>
170 #include <ext/pb_ds/detail/unordered_iterator/point_iterator.hpp>
171 #include <ext/pb_ds/detail/unordered_iterator/const_iterator.hpp>
172 #include <ext/pb_ds/detail/unordered_iterator/iterator.hpp>
173
174 #undef PB_DS_GEN_POS
175
176     public:
177       typedef Allocator allocator;
178       typedef typename Allocator::size_type size_type;
179       typedef typename Allocator::difference_type difference_type;
180       typedef Hash_Fn hash_fn;
181       typedef Eq_Fn eq_fn;
182       typedef Probe_Fn probe_fn;
183       typedef Comb_Probe_Fn comb_probe_fn;
184       typedef Resize_Policy resize_policy;
185
186       enum
187         {
188           store_hash = Store_Hash
189         };
190
191       typedef typename traits_base::key_type key_type;
192       typedef typename traits_base::key_pointer key_pointer;
193       typedef typename traits_base::const_key_pointer const_key_pointer;
194       typedef typename traits_base::key_reference key_reference;
195       typedef typename traits_base::const_key_reference const_key_reference;
196       typedef typename traits_base::mapped_type mapped_type;
197       typedef typename traits_base::mapped_pointer mapped_pointer;
198       typedef typename traits_base::const_mapped_pointer const_mapped_pointer;
199       typedef typename traits_base::mapped_reference mapped_reference;
200       typedef typename traits_base::const_mapped_reference const_mapped_reference;
201       typedef typename traits_base::value_type value_type;
202       typedef typename traits_base::pointer pointer;
203       typedef typename traits_base::const_pointer const_pointer;
204       typedef typename traits_base::reference reference;
205       typedef typename traits_base::const_reference const_reference;
206
207 #ifdef PB_DS_DATA_TRUE_INDICATOR
208       typedef point_iterator_ point_iterator;
209 #endif 
210
211 #ifdef PB_DS_DATA_FALSE_INDICATOR
212       typedef const_point_iterator_ point_iterator;
213 #endif 
214
215       typedef const_point_iterator_ const_point_iterator;
216
217 #ifdef PB_DS_DATA_TRUE_INDICATOR
218       typedef iterator_ iterator;
219 #endif 
220
221 #ifdef PB_DS_DATA_FALSE_INDICATOR
222       typedef const_iterator_ iterator;
223 #endif 
224
225       typedef const_iterator_ const_iterator;
226
227       PB_DS_CLASS_NAME();
228
229       PB_DS_CLASS_NAME(const PB_DS_CLASS_C_DEC&);
230
231       PB_DS_CLASS_NAME(const Hash_Fn&);
232
233       PB_DS_CLASS_NAME(const Hash_Fn&, const Eq_Fn&);
234
235       PB_DS_CLASS_NAME(const Hash_Fn&, const Eq_Fn&, const Comb_Probe_Fn&);
236
237       PB_DS_CLASS_NAME(const Hash_Fn&, const Eq_Fn&, const Comb_Probe_Fn&, 
238                        const Probe_Fn&);
239
240       PB_DS_CLASS_NAME(const Hash_Fn&, const Eq_Fn&, const Comb_Probe_Fn&, 
241                        const Probe_Fn&, const Resize_Policy&);
242
243       template<typename It>
244       void
245       copy_from_range(It first_it, It last_it);
246
247       virtual
248       ~PB_DS_CLASS_NAME();
249
250       void
251       swap(PB_DS_CLASS_C_DEC& other);
252
253       inline size_type
254       size() const;
255
256       inline size_type
257       max_size() const;
258
259       inline bool
260       empty() const;
261
262       Hash_Fn& 
263       get_hash_fn();
264
265       const Hash_Fn& 
266       get_hash_fn() const;
267
268       Eq_Fn& 
269       get_eq_fn();
270
271       const Eq_Fn& 
272       get_eq_fn() const;
273
274       Probe_Fn& 
275       get_probe_fn();
276
277       const Probe_Fn& 
278       get_probe_fn() const;
279
280       Comb_Probe_Fn& 
281       get_comb_probe_fn();
282
283       const Comb_Probe_Fn& 
284       get_comb_probe_fn() const;
285
286       Resize_Policy& 
287       get_resize_policy();
288
289       const Resize_Policy& 
290       get_resize_policy() const;
291
292       inline std::pair<point_iterator, bool>
293       insert(const_reference r_val)
294       {
295         _GLIBCXX_DEBUG_ONLY(PB_DS_CLASS_C_DEC::assert_valid();)
296         return insert_imp(r_val, traits_base::m_store_extra_indicator);
297       }
298
299       inline mapped_reference
300       operator[](const_key_reference r_key)
301       {
302 #ifdef PB_DS_DATA_TRUE_INDICATOR
303         return subscript_imp(r_key, traits_base::m_store_extra_indicator);
304 #else 
305         insert(r_key);
306         return traits_base::s_null_mapped;
307 #endif
308       }
309
310       inline point_iterator
311       find(const_key_reference r_key);
312
313       inline const_point_iterator
314       find(const_key_reference r_key) const;
315
316       inline point_iterator
317       find_end();
318
319       inline const_point_iterator
320       find_end() const;
321
322       inline bool
323       erase(const_key_reference r_key);
324
325       template<typename Pred>
326       inline size_type
327       erase_if(Pred prd);
328
329       void
330       clear();
331
332       inline iterator
333       begin();
334
335       inline const_iterator
336       begin() const;
337
338       inline iterator
339       end();
340
341       inline const_iterator
342       end() const;
343
344 #ifdef _GLIBCXX_DEBUG
345       void
346       assert_valid() const;
347 #endif 
348
349 #ifdef PB_DS_HT_MAP_TRACE_
350       void
351       trace() const;
352 #endif 
353
354     private:
355 #ifdef PB_DS_DATA_TRUE_INDICATOR
356       friend class iterator_;
357 #endif 
358
359       friend class const_iterator_;
360
361       void
362       deallocate_all();
363
364       void
365       initialize();
366
367       void
368       erase_all_valid_entries(entry_array, size_type);
369
370       inline bool
371       do_resize_if_needed();
372
373       inline void
374       do_resize_if_needed_no_throw();
375
376       void
377       resize_imp(size_type);
378
379       virtual void
380       do_resize(size_type);
381
382       void
383       resize_imp(entry_array, size_type);
384
385       inline void
386       resize_imp_reassign(entry_pointer, entry_array, store_hash_false_type);
387
388       inline void
389       resize_imp_reassign(entry_pointer, entry_array, store_hash_true_type);
390
391       inline size_type
392       find_ins_pos(const_key_reference, store_hash_false_type);
393
394       inline comp_hash
395       find_ins_pos(const_key_reference, store_hash_true_type);
396
397       inline std::pair<point_iterator, bool>
398       insert_imp(const_reference, store_hash_false_type);
399
400       inline std::pair<point_iterator, bool>
401       insert_imp(const_reference, store_hash_true_type);
402
403       inline pointer
404       insert_new_imp(const_reference r_val, size_type pos)
405       {
406         _GLIBCXX_DEBUG_ASSERT(m_entries[pos].m_stat != valid_entry_status);
407
408         if (do_resize_if_needed())
409           pos = find_ins_pos(PB_DS_V2F(r_val),
410                              traits_base::m_store_extra_indicator);
411
412         _GLIBCXX_DEBUG_ASSERT(m_entries[pos].m_stat != valid_entry_status);
413
414         entry* const p_e = m_entries + pos;
415         new (&p_e->m_value) value_type(r_val);
416         p_e->m_stat = valid_entry_status;
417         resize_base::notify_inserted(++m_num_used_e);
418
419         _GLIBCXX_DEBUG_ONLY(map_debug_base::insert_new(PB_DS_V2F(p_e->m_value));)
420
421         _GLIBCXX_DEBUG_ONLY(assert_valid();)
422         return &p_e->m_value;
423       }
424
425       inline pointer
426       insert_new_imp(const_reference r_val, comp_hash& r_pos_hash_pair)
427       {
428         _GLIBCXX_DEBUG_ASSERT(m_entries[r_pos_hash_pair.first].m_stat !=
429                          valid_entry_status);
430
431         if (do_resize_if_needed())
432           r_pos_hash_pair = find_ins_pos(PB_DS_V2F(r_val),
433                                          traits_base::m_store_extra_indicator);
434
435         _GLIBCXX_DEBUG_ASSERT(m_entries[r_pos_hash_pair.first].m_stat !=
436                               valid_entry_status);
437
438         entry* const p_e = m_entries + r_pos_hash_pair.first;
439         new (&p_e->m_value) value_type(r_val);
440         p_e->m_hash = r_pos_hash_pair.second;
441         p_e->m_stat = valid_entry_status;
442
443         resize_base::notify_inserted(++m_num_used_e);
444
445         _GLIBCXX_DEBUG_ONLY(map_debug_base::insert_new(PB_DS_V2F(p_e->m_value));)
446
447         _GLIBCXX_DEBUG_ONLY(assert_valid();)
448         return &p_e->m_value;
449       }
450
451 #ifdef PB_DS_DATA_TRUE_INDICATOR
452       inline mapped_reference
453       subscript_imp(const_key_reference key, store_hash_false_type)
454       {
455         _GLIBCXX_DEBUG_ONLY(assert_valid();)
456
457         const size_type pos = find_ins_pos(key, 
458                                          traits_base::m_store_extra_indicator);
459
460         entry_pointer p_e =& m_entries[pos];
461
462         if (p_e->m_stat != valid_entry_status)
463           return insert_new_imp(value_type(key, mapped_type()), pos)->second;
464
465         _GLIBCXX_DEBUG_ONLY(map_debug_base::check_key_exists(key);)       
466         return p_e->m_value.second;
467       }
468
469       inline mapped_reference
470       subscript_imp(const_key_reference key, store_hash_true_type)
471       {
472         _GLIBCXX_DEBUG_ONLY(assert_valid();)
473
474         comp_hash pos_hash_pair =
475           find_ins_pos(key, traits_base::m_store_extra_indicator);
476
477         if (m_entries[pos_hash_pair.first].m_stat != valid_entry_status)
478           return insert_new_imp(value_type(key, mapped_type()),
479                                  pos_hash_pair)->second;
480
481         _GLIBCXX_DEBUG_ONLY(map_debug_base::check_key_exists(key));
482         return (m_entries + pos_hash_pair.first)->m_value.second;
483       }
484 #endif
485
486       inline pointer
487       find_key_pointer(const_key_reference key, store_hash_false_type)
488       {
489         const size_type hash = ranged_probe_fn_base::operator()(key);
490         size_type i;
491         resize_base::notify_find_search_start();
492
493         // Loop until entry is found or until all possible entries accessed.
494         for (i = 0; i < m_num_e; ++i)
495           {
496             const size_type pos = ranged_probe_fn_base::operator()(key, hash, i);
497
498             entry* const p_e = m_entries + pos;
499             switch (p_e->m_stat)
500               {
501               case empty_entry_status:
502                 {
503                   resize_base::notify_find_search_end();
504                   _GLIBCXX_DEBUG_ONLY(map_debug_base::check_key_does_not_exist(key);)
505
506                     return NULL;
507                 }
508                 break;
509               case valid_entry_status:
510                 if (hash_eq_fn_base::operator()(PB_DS_V2F(p_e->m_value), key))
511                   {
512                     resize_base::notify_find_search_end();
513                     _GLIBCXX_DEBUG_ONLY(map_debug_base::check_key_exists(key);)
514
515                     return pointer(&p_e->m_value);
516                   }
517                 break;
518               case erased_entry_status:
519                 break;
520               default:
521                 _GLIBCXX_DEBUG_ASSERT(0);
522               };
523
524             resize_base::notify_find_search_collision();
525           }
526
527         _GLIBCXX_DEBUG_ONLY(map_debug_base::check_key_does_not_exist(key);)
528         resize_base::notify_find_search_end();
529         return NULL;
530       }
531
532       inline pointer
533       find_key_pointer(const_key_reference key, store_hash_true_type)
534       {
535         comp_hash pos_hash_pair = ranged_probe_fn_base::operator()(key);
536         size_type i;
537         resize_base::notify_find_search_start();
538
539         // Loop until entry is found or until all possible entries accessed.
540         for (i = 0; i < m_num_e; ++i)
541           {
542             const size_type pos =
543               ranged_probe_fn_base::operator()(key, pos_hash_pair.second, i);
544
545             entry* const p_e = m_entries + pos;
546
547             switch(p_e->m_stat)
548               {
549               case empty_entry_status:
550                 {
551                   resize_base::notify_find_search_end();
552                   _GLIBCXX_DEBUG_ONLY(map_debug_base::check_key_does_not_exist(key);)
553
554                   return NULL;
555                 }
556                 break;
557               case valid_entry_status:
558                 if (hash_eq_fn_base::operator()(PB_DS_V2F(p_e->m_value),
559                                                 p_e->m_hash,
560                                                 key, pos_hash_pair.second))
561                   {
562                     resize_base::notify_find_search_end();
563                     _GLIBCXX_DEBUG_ONLY(map_debug_base::check_key_exists(key);)
564                     return pointer(&p_e->m_value);
565                   }
566                 break;
567               case erased_entry_status:
568                 break;
569               default:
570                 _GLIBCXX_DEBUG_ASSERT(0);
571               };
572
573             resize_base::notify_find_search_collision();
574           }
575
576         _GLIBCXX_DEBUG_ONLY(map_debug_base::check_key_does_not_exist(key);)
577         resize_base::notify_find_search_end();
578         return NULL;
579       }
580
581       inline bool
582       erase_imp(const_key_reference, true_type);
583
584       inline bool
585       erase_imp(const_key_reference, false_type);
586
587       inline void
588       erase_entry(entry_pointer p_e);
589
590 #ifdef PB_DS_DATA_TRUE_INDICATOR
591       void
592       inc_it_state(pointer& r_p_value, size_type& r_pos) const
593       { inc_it_state((const_mapped_pointer& )r_p_value, r_pos); }
594 #endif 
595
596       void
597       inc_it_state(const_pointer& r_p_value, size_type& r_pos) const
598       {
599         _GLIBCXX_DEBUG_ASSERT(r_p_value != NULL);
600         for (++r_pos; r_pos < m_num_e; ++r_pos)
601           {
602             const_entry_pointer p_e =& m_entries[r_pos];
603             if (p_e->m_stat == valid_entry_status)
604               {
605                 r_p_value =& p_e->m_value;
606                 return;
607               }
608           }
609         r_p_value = NULL;
610       }
611
612       void
613       get_start_it_state(const_pointer& r_p_value, size_type& r_pos) const
614       {
615         for (r_pos = 0; r_pos < m_num_e; ++r_pos)
616           {
617             const_entry_pointer p_e = &m_entries[r_pos];
618             if (p_e->m_stat == valid_entry_status)
619               {
620                 r_p_value = &p_e->m_value;
621                 return;
622               }
623           }
624         r_p_value = NULL;
625       }
626
627       void
628       get_start_it_state(pointer& r_p_value, size_type& r_pos)
629       {
630         for (r_pos = 0; r_pos < m_num_e; ++r_pos)
631           {
632             entry_pointer p_e = &m_entries[r_pos];
633             if (p_e->m_stat == valid_entry_status)
634               {
635                 r_p_value = &p_e->m_value;
636                 return;
637               }
638           }
639         r_p_value = NULL;
640       }
641
642 #ifdef _GLIBCXX_DEBUG
643       void
644       assert_entry_array_valid(const entry_array, store_hash_false_type) const;
645
646       void
647       assert_entry_array_valid(const entry_array, store_hash_true_type) const;
648 #endif 
649
650       static entry_allocator    s_entry_allocator;
651       static iterator           s_end_it;
652       static const_iterator     s_const_end_it;
653
654       size_type                 m_num_e;
655       size_type                 m_num_used_e;
656       entry_pointer             m_entries;
657
658       enum
659         {
660           store_hash_ok = !Store_Hash 
661                           || !is_same<Hash_Fn, pb_ds::null_hash_fn>::value
662         };
663
664       PB_DS_STATIC_ASSERT(sth, store_hash_ok);
665     };
666
667 #include <ext/pb_ds/detail/gp_hash_table_map_/constructor_destructor_fn_imps.hpp>
668 #include <ext/pb_ds/detail/gp_hash_table_map_/find_fn_imps.hpp>
669 #include <ext/pb_ds/detail/gp_hash_table_map_/resize_fn_imps.hpp>
670 #include <ext/pb_ds/detail/gp_hash_table_map_/debug_fn_imps.hpp>
671 #include <ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp>
672 #include <ext/pb_ds/detail/gp_hash_table_map_/policy_access_fn_imps.hpp>
673 #include <ext/pb_ds/detail/gp_hash_table_map_/erase_fn_imps.hpp>
674 #include <ext/pb_ds/detail/gp_hash_table_map_/iterator_fn_imps.hpp>
675 #include <ext/pb_ds/detail/gp_hash_table_map_/insert_fn_imps.hpp>
676 #include <ext/pb_ds/detail/gp_hash_table_map_/trace_fn_imps.hpp>
677
678 #undef PB_DS_CLASS_T_DEC
679 #undef PB_DS_CLASS_C_DEC
680 #undef PB_DS_HASH_EQ_FN_C_DEC
681 #undef PB_DS_RANGED_PROBE_FN_C_DEC
682 #undef PB_DS_TYPES_TRAITS_C_DEC
683 #undef PB_DS_MAP_DEBUG_BASE_C_DEC
684 #undef PB_DS_CLASS_NAME
685 #undef PB_DS_V2F
686 #undef PB_DS_V2S
687 #undef PB_DS_STATIC_ASSERT
688
689   } // namespace detail
690 } // namespace pb_ds
691