00001 // Licensed to the Apache Software Foundation (ASF) under one 00002 // or more contributor license agreements. See the NOTICE file 00003 // distributed with this work for additional information 00004 // regarding copyright ownership. The ASF licenses this file 00005 // to you under the Apache License, Version 2.0 (the 00006 // "License"); you may not use this file except in compliance 00007 // with the License. You may obtain a copy of the License at 00008 // 00009 // http://www.apache.org/licenses/LICENSE-2.0 00010 // 00011 // Unless required by applicable law or agreed to in writing, 00012 // software distributed under the License is distributed on an 00013 // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 00014 // KIND, either express or implied. See the License for the 00015 // specific language governing permissions and limitations 00016 // under the License. 00017 00018 #ifndef KUDU_CLIENT_SHARED_PTR_H 00019 #define KUDU_CLIENT_SHARED_PTR_H 00020 00038 00039 #if defined(__APPLE__) 00040 #include <memory> 00041 00042 namespace kudu { 00043 namespace client { 00044 namespace sp { 00045 using std::shared_ptr; 00046 using std::weak_ptr; 00047 using std::enable_shared_from_this; 00048 } 00049 } 00050 } 00051 00052 #else 00053 #include <tr1/memory> 00054 00055 namespace kudu { 00056 namespace client { 00057 namespace sp { 00058 using std::tr1::shared_ptr; 00059 using std::tr1::weak_ptr; 00060 using std::tr1::enable_shared_from_this; 00061 } 00062 } 00063 } 00064 #endif 00065 00066 #endif // define KUDU_CLIENT_SHARED_PTR_H