diff options
-rw-r--r-- | data_sets/shared_table_data_set.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/data_sets/shared_table_data_set.hpp b/data_sets/shared_table_data_set.hpp index cd2bf55..6e34808 100644 --- a/data_sets/shared_table_data_set.hpp +++ b/data_sets/shared_table_data_set.hpp @@ -60,7 +60,7 @@ namespace opt_utilities data_vec.clear(); } - bool insert_data(size_t idx,const data<Ty,Tx>& d) + bool insert_data(int idx,const data<Ty,Tx>& d) { if(idx<0||idx>data_vec.size()) { @@ -70,7 +70,7 @@ namespace opt_utilities return true; } - bool insert_data(size_t idx,size_t n,const data<Ty,Tx>& d) + bool insert_data(int idx,size_t n,const data<Ty,Tx>& d) { if(idx<0||idx>data_vec.size()) { @@ -134,6 +134,11 @@ namespace opt_utilities return *this; } + void reserve(size_t n) + { + data_vec.reserve(n); + } + }; } |