X-Git-Url: http://gitweb.hachti.de/?a=blobdiff_plain;f=pc-tools%2Fldc2%2Fsrc%2Ftool.hh;h=4919b65800c08fa12264dd59d29e1c61b18e1346;hb=d65ad4d76066646927175a9896fe348bc0691e68;hp=cfc31bb057875094089a6844f5aec18eeeb42874;hpb=874a2bd89fd65e5a1763d88c218f066a424e0d04;p=h316.git diff --git a/pc-tools/ldc2/src/tool.hh b/pc-tools/ldc2/src/tool.hh index cfc31bb..4919b65 100644 --- a/pc-tools/ldc2/src/tool.hh +++ b/pc-tools/ldc2/src/tool.hh @@ -1,3 +1,17 @@ +/****************************************************************************** + * + * LDC2 source code + * + * $Date: 2007/03/26 01:00:40 $ + * $Author: hachti $ + * + * $Log: tool.hh,v $ + * Revision 2.0 2007/03/26 01:00:40 hachti + * *** empty log message *** + * + * + ******************************************************************************/ + #ifndef TOOL_HH #define TOOL_HH @@ -9,8 +23,24 @@ using namespace std; extern int dump_vector(vector strings); extern int dump_vector_fp(vector strings, FILE * fp); -template -extern void merge_vector_unique(vector &target, const vector & source); +/*! + *\brief add contents of one vector to another vector uniquely. + *\param target Reference to the target vector. + *\param source Reference to the vector whose contents are to be added + * to target. + */ +template +void merge_vector_unique(vector &target, const vector & source){ + for (unsigned int isource=0; isource