Main Page   Reference Manual   Namespace List   Compound List   Namespace Members   Compound Members   File Members  

private_internal_vector.h
Go to the documentation of this file.
1 // $Header$
2 //
3 // Copyright (C) 2001 - 2004, by
4 //
5 // Carlo Wood, Run on IRC <carlo@alinoe.com>
6 // RSA-1024 0x624ACAD5 1997-01-26 Sign & Encrypt
7 // Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF 61
8 //
9 // This file may be distributed under the terms of the Q Public License
10 // version 1.0 as appearing in the file LICENSE.QPL included in the
11 // packaging of this file.
12 //
13 
18 #ifndef LIBCWD_PRIVATE_INTERNAL_VECTOR_H
19 #define LIBCWD_PRIVATE_INTERNAL_VECTOR_H
20 
21 #ifndef LIBCWD_CONFIG_H
22 #include <libcwd/config.h>
23 #endif
24 #ifndef LIBCWD_PRIVATE_ALLOCATOR_H
26 #endif
27 #ifndef LIBCW_VECTOR
28 #define LIBCW_VECTOR
29 #include <vector>
30 #endif
31 
32 namespace libcwd {
33  namespace _private_ {
34 
35 // This is the vector type that we use in Multi Threaded internal functions.
36 #if CWDEBUG_ALLOC
37 template <typename T>
38  struct internal_vector : public ::std::vector<T, typename internal_allocator::rebind<T>::other>
39  { };
40 #else
41 template <typename T>
42  struct internal_vector : public ::std::vector<T>
43  { };
44 #endif
45 
46  } // namespace _private_
47 } // namespace libcwd
48 
49 #endif // LIBCWD_PRIVATE_INTERNAL_VECTOR_H
50 
Copyright © 2001 - 2004 Carlo Wood.  All rights reserved.