Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: compiled/Map.h

Issue 29613616: Issue 6064 - Put C++ code into a configurable namespace (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git
Patch Set: rebase Created Dec. 12, 2017, 12:45 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « compiled/IntMap.h ('k') | compiled/String.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <cmath> 20 #include <cmath>
21 #include <initializer_list> 21 #include <initializer_list>
22 #include <memory> 22 #include <memory>
23 23
24 #include "base.h"
24 #include "debug.h" 25 #include "debug.h"
25 #include "String.h" 26 #include "String.h"
26 27
28 ABP_NS_BEGIN
29
27 template<typename Entry> 30 template<typename Entry>
28 class Map; 31 class Map;
29 32
30 namespace Map_internal 33 namespace Map_internal
31 { 34 {
32 template<typename Entry> 35 template<typename Entry>
33 struct HashContainerIterator 36 struct HashContainerIterator
34 { 37 {
35 typedef Entry entry_type; 38 typedef Entry entry_type;
36 typedef HashContainerIterator<Entry> iterator; 39 typedef HashContainerIterator<Entry> iterator;
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 const_reference find(key_type_cref key) const 308 const_reference find(key_type_cref key) const
306 { 309 {
307 return super::find(key); 310 return super::find(key);
308 } 311 }
309 312
310 reference find(key_type_cref key) 313 reference find(key_type_cref key)
311 { 314 {
312 return reference(this, key, super::find_bucket(key)); 315 return reference(this, key, super::find_bucket(key));
313 } 316 }
314 }; 317 };
318
319 ABP_NS_END
OLDNEW
« no previous file with comments | « compiled/IntMap.h ('k') | compiled/String.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld