SimpleITK  1.2.4
unordered_map.h
Go to the documentation of this file.
1 /*=========================================================================
2 *
3 * Copyright Insight Software Consortium
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18 #ifndef sitk_nsstd_unordered_map_h
19 #define sitk_nsstd_unordered_map_h
20 
21 #include "sitkConfigure.h"
22 
23 #if !defined SITK_HAS_TR1_UNORDERED_MAP && !defined SITK_HAS_CXX11_UNORDERED_MAP
24 #error "No system (tr1/c++11) unordered_map header available!"
25 #endif
26 
27 
28 #if defined SITK_HAS_CXX11_UNORDERED_MAP && !defined SITK_HAS_TR1_SUB_INCLUDE
29 #include <unordered_map>
30 #elif
31 #include <tr1/unordered_map>
32 #endif
33 
34 namespace itk
35 {
36 namespace simple
37 {
38 namespace nsstd
39 {
40 #if defined SITK_HAS_TR1_UNORDERED_MAP && !defined SITK_HAS_CXX11_UNORDERED_MAP
41 using std::tr1::unordered_map;
42 #else
43 using std::unordered_map;
44 #endif
45 }
46 }
47 }
48 
49 
50 #endif // sitk_nsstd_unordered_map_h