OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-present eyeo GmbH | 3 * Copyright (C) 2006-present eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
16 */ | 16 */ |
17 | 17 |
18 #pragma once | 18 #pragma once |
19 | 19 |
20 #include <cstddef> | 20 #include <cstddef> |
21 #include <cmath> | 21 #include <cmath> |
22 #include <initializer_list> | 22 #include <initializer_list> |
23 #include <memory> | 23 #include <memory> |
24 | 24 |
| 25 #include "base.h" |
25 #include "String.h" | 26 #include "String.h" |
26 #include "debug.h" | 27 #include "debug.h" |
27 | 28 |
| 29 ABP_NS_BEGIN |
| 30 |
28 template<typename T> | 31 template<typename T> |
29 class StringMap; | 32 class StringMap; |
30 | 33 |
31 namespace StringMap_internal | 34 namespace StringMap_internal |
32 { | 35 { |
33 template<typename Entry> | 36 template<typename Entry> |
34 struct HashContainerIterator | 37 struct HashContainerIterator |
35 { | 38 { |
36 typedef Entry entry_type; | 39 typedef Entry entry_type; |
37 typedef HashContainerIterator<Entry> iterator; | 40 typedef HashContainerIterator<Entry> iterator; |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 const_reference find(const String& key) const | 351 const_reference find(const String& key) const |
349 { | 352 { |
350 return super::find(key); | 353 return super::find(key); |
351 } | 354 } |
352 | 355 |
353 reference find(const String& key) | 356 reference find(const String& key) |
354 { | 357 { |
355 return reference(this, key, super::find_bucket(key)); | 358 return reference(this, key, super::find_bucket(key)); |
356 } | 359 } |
357 }; | 360 }; |
| 361 |
| 362 ABP_NS_END |
OLD | NEW |