8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 06:43:02 +01:00
firebird-mirror/src/include/fb_vector.h

36 lines
817 B
C
Raw Normal View History

2001-12-24 03:51:06 +01:00
/*
* fb_vector.h
* firebird_test
*
* Created by john on Fri Dec 14 2001.
* Copyright (c) 2001 __MyCompanyName__. All rights reserved.
*
*/
#ifndef INCLUDE_FB_VECTOR_H
#define INCLUDE_FB_VECTOR_H
2001-12-24 03:51:06 +01:00
#include "../include/fb_types.h"
#include "../common/classes/alloc.h"
2001-12-24 03:51:06 +01:00
#include <vector>
namespace Firebird
{
template<class T>
class vector : public std::vector<T, Firebird::allocator<T> >
{
public:
vector(int len) : std::vector<T, Firebird::allocator<T> >(len) {}
vector(int len, MemoryPool& p, SSHORT type = 0)
2001-12-24 03:51:06 +01:00
: std::vector<T, Firebird::allocator<T> >(len, T(),
Firebird::allocator<T>(p, type)) {}
vector(MemoryPool& p, SSHORT type = 0)
2001-12-24 03:51:06 +01:00
: std::vector<T, Firebird::allocator<T> >(
Firebird::allocator<T>(p, type) ) {}
};
2004-06-13 05:09:29 +02:00
} // namespace Firebird
2001-12-24 03:51:06 +01:00
#endif // INCLUDE_FB_VECTOR_H
2003-12-22 11:00:59 +01:00