123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- #ifndef _STLP_MEMORY
- #ifndef _STLP_OUTERMOST_HEADER_ID
- # define _STLP_OUTERMOST_HEADER_ID 0x46
- # include <stl/_prolog.h>
- # define _STLP_MEMORY
- #endif
- #if (_STLP_OUTERMOST_HEADER_ID == 0x46)
- # ifndef _STLP_INTERNAL_ALLOC_H
- # include <stl/_alloc.h>
- # endif
- # ifndef _STLP_INTERNAL_TEMPBUF_H
- # include <stl/_tempbuf.h>
- # endif
- # ifndef _STLP_INTERNAL_RAW_STORAGE_ITER_H
- # include <stl/_raw_storage_iter.h>
- # endif
- # include <stl/_auto_ptr.h>
- #endif
- #if (_STLP_OUTERMOST_HEADER_ID != 0x46) || defined (_STLP_IMPORT_VENDOR_STD)
- # if defined (__MSL__)
- # include _STLP_NATIVE_HEADER(limits)
- # endif
- # if !defined(_STLP_NO_EXTENSIONS) && defined(_STLP_USE_BOOST_SUPPORT)
- # define BOOST_TR1_MEMORY_INCLUDED
- # define BOOST_TR1_FULL_MEMORY_INCLUDED
- # endif
- # if defined (_STLP_HAS_INCLUDE_NEXT)
- # include_next <memory>
- # else
- # include _STLP_NATIVE_HEADER(memory)
- # endif
- # if defined (__MSL__) && (__MSL__ >= 0x2405 && __MSL__ < 0x5201)
-
- # include <new_mem.h>
- # endif
- #endif
- #if (_STLP_OUTERMOST_HEADER_ID == 0x46)
- # include <stl/_epilog.h>
- # undef _STLP_OUTERMOST_HEADER_ID
- #endif
- #if !defined(_STLP_NO_EXTENSIONS) && defined(_STLP_USE_BOOST_SUPPORT)
- namespace boost {
- class bad_weak_ptr;
- template<class T> class shared_ptr;
- template<class T> class weak_ptr;
- template<class T> class enable_shared_from_this;
- template<class D, class T> D * get_deleter(shared_ptr<T> const & p);
- template<class T, class U> shared_ptr<T> static_pointer_cast(shared_ptr<U> const & r);
- template<class T, class U> shared_ptr<T> const_pointer_cast(shared_ptr<U> const & r);
- template<class T, class U> shared_ptr<T> dynamic_pointer_cast(shared_ptr<U> const & r);
- template<class T> void swap(weak_ptr<T> & a, weak_ptr<T> & b);
- template<class T> void swap(shared_ptr<T> & a, shared_ptr<T> & b);
- namespace detail{
- class shared_count;
- class weak_count;
- }
- }
- # ifndef BOOST_SHARED_PTR_HPP_INCLUDED
- # include <boost/shared_ptr.hpp>
- # endif
- # ifndef BOOST_WEAK_PTR_HPP_INCLUDED
- # include <boost/weak_ptr.hpp>
- # endif
- # ifndef BOOST_ENABLE_SHARED_FROM_THIS_HPP_INCLUDED
- # include <boost/enable_shared_from_this.hpp>
- # endif
- _STLP_BEGIN_NAMESPACE
- namespace tr1 {
- using ::boost::bad_weak_ptr;
- using ::boost::shared_ptr;
- using ::boost::swap;
- using ::boost::static_pointer_cast;
- using ::boost::dynamic_pointer_cast;
- using ::boost::const_pointer_cast;
- using ::boost::get_deleter;
- using ::boost::weak_ptr;
- using ::boost::enable_shared_from_this;
- }
- _STLP_END_NAMESPACE
- #endif
- #endif
|