diff options
author | fcolin | 2007-02-01 12:54:20 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 12:54:20 +0000 |
commit | 6513325e7bd1f55d188fd0b6f65893f684f5dfab (patch) | |
tree | dd6390d61d73865e327643b40b36d447be149f51 /Bus | |
parent | 2019d110d8748ed64805bd89294abfb1cc12d83e (diff) | |
download | ivy-cplusplus-6513325e7bd1f55d188fd0b6f65893f684f5dfab.zip ivy-cplusplus-6513325e7bd1f55d188fd0b6f65893f684f5dfab.tar.gz ivy-cplusplus-6513325e7bd1f55d188fd0b6f65893f684f5dfab.tar.bz2 ivy-cplusplus-6513325e7bd1f55d188fd0b6f65893f684f5dfab.tar.xz |
Utilisateur : Fcolin Date : 27/06/01 Heure : 14:24 Archivé dans $/Ivy (vss 5)
Diffstat (limited to 'Bus')
-rw-r--r-- | Bus/Ivy/DataTypes.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Bus/Ivy/DataTypes.h b/Bus/Ivy/DataTypes.h index 99b6e05..acc4aa0 100644 --- a/Bus/Ivy/DataTypes.h +++ b/Bus/Ivy/DataTypes.h @@ -260,6 +260,9 @@ public: void reserve( size_t index )
{
if ( index >= len )
+ resize( index );
+ }
+ void resize( size_t index )
{
size_t i;
T* newdata = new T[index];
@@ -271,7 +274,6 @@ public: data = newdata;
len = index;
}
- }
// Accesses indexed component of vector
T & operator [](size_t index )
{
|