Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
include
osl
stl
vector.h
Go to the documentation of this file.
1
/* vector.h
2
*/
3
#ifndef VECTOR_H
4
#define VECTOR_H
5
6
#include "
osl/stl/pool_allocator.h
"
7
#include <vector>
8
#include <cstddef>
9
namespace
osl
10
{
11
namespace
stl
12
{
13
// 2008-04-23 vector は scalable_allocatorで動かないようにみえる
14
// gpl_pool_allocatorを使う意味もほとんどないので、標準のallocatorを使う
15
template
<
class
T>
16
struct
vector
:
public
std::vector<T>
17
{
18
typedef
std::vector<T>
base_t
;
19
vector
() {}
20
explicit
vector
(
size_t
s);
21
vector
(
size_t
s,
const
T& val) :
base_t
(s,val)
22
{
23
}
24
vector
(
const
typename
base_t::const_iterator it1,
const
typename
base_t::const_iterator it2)
25
:
base_t
(it1, it2)
26
{}
27
~vector
();
28
};
29
template
<
class
T>
30
vector<T>::~vector
()
31
{
32
}
33
template
<
class
T>
34
vector<T>::vector
(
size_t
s) :
base_t
(s)
35
{
36
}
37
}
// namespace stl
38
using
stl::vector
;
39
}
// namespace stl
40
41
#endif
/* VECTOR_H */
42
// ;;; Local Variables:
43
// ;;; mode:c++
44
// ;;; c-basic-offset:2
45
// ;;; End:
Generated on Sun Jul 21 2013 13:37:27 by
1.8.4