vector.h
Go to the documentation of this file.
00001 /* vector.h
00002  */
00003 #ifndef VECTOR_H
00004 #define VECTOR_H
00005 
00006 #include "osl/stl/pool_allocator.h"
00007 #include <vector>
00008 #include <cstddef>
00009 namespace osl
00010 {
00011   namespace stl
00012   {
00013     // 2008-04-23 vector は scalable_allocatorで動かないようにみえる
00014     // gpl_pool_allocatorを使う意味もほとんどないので、標準のallocatorを使う
00015     template <class T>
00016     struct vector : public std::vector<T>
00017     {
00018       typedef std::vector<T> base_t;
00019       vector() {}
00020       explicit vector(size_t s);
00021       vector(size_t s, const T& val) : base_t(s,val)
00022       {
00023       }
00024       vector(const typename base_t::const_iterator it1, const typename base_t::const_iterator it2)
00025         : base_t(it1, it2)
00026       {}
00027       ~vector();
00028     };
00029     template <class T>
00030     vector<T>::~vector()
00031     {
00032     }
00033     template <class T>
00034     vector<T>::vector(size_t s) : base_t(s)
00035     {
00036     }
00037   } // namespace stl
00038   using stl::vector;
00039 } // namespace stl
00040 
00041 #endif /* VECTOR_H */
00042 // ;;; Local Variables:
00043 // ;;; mode:c++
00044 // ;;; c-basic-offset:2
00045 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines