aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-09-23 17:26:19 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-09-23 17:26:19 +0000
commitec066c34fea88f9bcbdf3b9280a2747672fa2ef6 (patch)
treef638ce0ba7ca7b6f212e257615fb8a4793f5c9b0
parent4be834ea2ec7702b71ce9f77bc4aeebd059f942c (diff)
downloadopt-utilities-ec066c34fea88f9bcbdf3b9280a2747672fa2ef6.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@72 ed2142bd-67ad-457f-ba7c-d818d4011675
-rw-r--r--data_sets/shared_table_data_set.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/data_sets/shared_table_data_set.hpp b/data_sets/shared_table_data_set.hpp
index 1e9b743..380e055 100644
--- a/data_sets/shared_table_data_set.hpp
+++ b/data_sets/shared_table_data_set.hpp
@@ -70,6 +70,17 @@ namespace opt_utilities
return true;
}
+ bool insert_data(size_t idx,size_t n,const data<Ty,Tx>& d)
+ {
+ if(idx<0||idx>data_vec.size())
+ {
+ return false;
+ }
+ data_vec.insert(data_vec.begin()+idx,n,d);
+ return true;
+ }
+
+
bool erase_data(size_t idx)
{
if(idx>=0&&idx<data_vec.size())