SimpleITK  1.3.0.dev466
auto_ptr.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_auto_ptr_h
19 #define sitk_nsstd_auto_ptr_h
20 
21 #include "sitkConfigure.h"
22 
23 #include <memory>
24 
25 namespace itk
26 {
27 namespace simple
28 {
29 namespace nsstd
30 {
31 #if defined SITK_HAS_CXX11_UNIQUE_PTR && defined SITK_HAS_CXX11_ALIAS_TEMPLATE
32 template <typename T>
33 using auto_ptr = std::unique_ptr<T>;
34 #else
35 using std::auto_ptr;
36 #endif
37 }
38 }
39 }
40 
41 #endif // sitk_nsstd_auto_ptr_h