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

libcwd/private_internal_vector.h

Go to the documentation of this file.
00001 // $Header: /cvsroot/libcwd/libcwd/include/libcwd/private_internal_vector.h,v 1.4 2004/06/03 12:23:07 libcw Exp $
00002 //
00003 // Copyright (C) 2001 - 2004, by
00004 // 
00005 // Carlo Wood, Run on IRC <carlo@alinoe.com>
00006 // RSA-1024 0x624ACAD5 1997-01-26                    Sign & Encrypt
00007 // Fingerprint16 = 32 EC A7 B6 AC DB 65 A6  F6 F6 55 DD 1C DC FF 61
00008 //
00009 // This file may be distributed under the terms of the Q Public License
00010 // version 1.0 as appearing in the file LICENSE.QPL included in the
00011 // packaging of this file.
00012 //
00013 
00018 #ifndef LIBCWD_PRIVATE_INTERNAL_VECTOR_H
00019 #define LIBCWD_PRIVATE_INTERNAL_VECTOR_H
00020 
00021 #ifndef LIBCWD_CONFIG_H
00022 #include <libcwd/config.h>
00023 #endif
00024 #ifndef LIBCWD_PRIVATE_ALLOCATOR_H
00025 #include <libcwd/private_allocator.h>
00026 #endif
00027 #ifndef LIBCW_VECTOR
00028 #define LIBCW_VECTOR
00029 #include <vector>
00030 #endif
00031 
00032 namespace libcwd {
00033   namespace _private_ {
00034 
00035 // This is the vector type that we use in Multi Threaded internal functions.
00036 #if CWDEBUG_ALLOC
00037 template <typename T>
00038   struct internal_vector : public ::std::vector<T, typename internal_allocator::rebind<T>::other>
00039   { };
00040 #else
00041 template <typename T>
00042   struct internal_vector : public ::std::vector<T>
00043   { };
00044 #endif
00045 
00046   } // namespace _private_
00047 } // namespace libcwd
00048 
00049 #endif // LIBCWD_PRIVATE_INTERNAL_VECTOR_H
00050 
Copyright © 2001 - 2004 Carlo Wood.  All rights reserved.