atscppapi  1.0.9
C++ wrapper for Apache Traffic Server API
 All Classes Files Functions Enumerations Enumerator Macros
shared_ptr.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 LinkedIn Corp. All rights reserved.
3  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
4  * except in compliance with the License. You may obtain a copy of the license at
5  * http://www.apache.org/licenses/LICENSE-2.0
6  *
7  * Unless required by applicable law or agreed to in writing, software distributed under the
8  * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
9  * either express or implied.
10  *
11  */
12 
13 /**
14  * @file shared_ptr.h
15  * @author Brian Geffon
16  * @author Manjesh Nilange
17  *
18  * Shared pointer declaration.
19  */
20 
21 #pragma once
22 #ifndef ASTCPPAPI_SHARED_PTR_H_
23 #define ASTCPPAPI_SHARED_PTR_H_
24 
25 #include <tr1/memory>
26 
27 namespace atscppapi {
28 
29 /**
30  * Force the use of std::tr1::shared_ptr
31  * \todo Consider adding a simple macro to check if c++0x/11 is enabled
32  * and if so change it to std::shared_ptr and #include <memory>s
33  */
34 using std::tr1::shared_ptr;
35 
36 } /* atscppapi */
37 
38 #endif /* SHARED_PTR_H_ */