L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
basic_vector.h
Go to the documentation of this file.
1
5
/*
6
* (c) 2008-2009 Alexander Warg <warg@os.inf.tu-dresden.de>
7
* economic rights: Technische Universität Dresden (Germany)
8
*
9
* License: see LICENSE.spdx (in this directory or the directories above)
10
*/
11
#pragma once
12
13
#include <l4/cxx/std_alloc>
14
15
namespace
cxx
{
16
17
template
<
typename
T >
18
class
Basic_vector
19
{
20
public
:
21
Basic_vector(T *array,
unsigned
long
capacity)
22
: _array(array), _capacity(capacity)
23
{
24
for
(
unsigned
long
i = 0; i < capacity; ++i)
25
new
(&_array[i]) T();
26
}
27
28
private
:
29
T *_array;
30
unsigned
long
_capacity;
31
};
32
33
};
cxx
Our C++ library.
Definition
arith:11
l4
cxx
basic_vector.h
Generated on Fri May 23 2025 13:40:51 for L4Re Operating System Framework by
1.9.8