From b5f6f5a869e2ce9db6ca29c843369b6518e7c4d7 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Tue, 6 Oct 2009 13:50:10 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@77 ed2142bd-67ad-457f-ba7c-d818d4011675 --- data_sets/shared_table_data_set.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'data_sets/shared_table_data_set.hpp') 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& d) + bool insert_data(int idx,const data& 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& d) + bool insert_data(int idx,size_t n,const data& 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); + } + }; } -- cgit v1.2.2