root/lang/c/mpio/trunk/mp/memory.h @ 19740

Revision 19740, 1.2 kB (checked in by frsyuki, 5 years ago)

lang/c/mpio: added mp/memory.h

Line 
1//
2// mp::memory
3//
4// Copyright (C) 2008 FURUHASHI Sadayuki
5//
6//    Licensed under the Apache License, Version 2.0 (the "License");
7//    you may not use this file except in compliance with the License.
8//    You may obtain a copy of the License at
9//
10//        http://www.apache.org/licenses/LICENSE-2.0
11//
12//    Unless required by applicable law or agreed to in writing, software
13//    distributed under the License is distributed on an "AS IS" BASIS,
14//    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15//    See the License for the specific language governing permissions and
16//    limitations under the License.
17//
18
19#ifndef MP_MEMORY_H__
20#define MP_MEMORY_H__
21
22#ifdef MP_MEMORY_BOOST
23#include <boost/tr1/memory>
24namespace mp {
25        using std::tr1::shared_ptr;
26        //using std::tr2::scoped_ptr;
27}
28#else
29#ifdef MP_MEMORY_BOOST_ORG
30#include <boost/shared_ptr.hpp>
31//#include <boost/scoped_ptr.hpp>
32namespace mp {
33        using boost::shared_ptr;
34        //using boost::scoped_ptr;
35}
36#else
37#ifndef MP_MEMORY_STANDARD
38#include <tr1/memory>
39namespace mp {
40        using std::tr1::shared_ptr;
41        //using std::tr2::scoped_ptr;
42}
43#else
44#include <memory>
45namespace mp {
46        using std::shared_ptr;
47        //using std::scoped_ptr;
48}
49#endif
50#endif
51#endif
52
53#endif /* mp/memory.h */
54
Note: See TracBrowser for help on using the browser.