35 template<
class V,
class T>
36 static inline void remove(V& ts,
const T& t)
39 for (; j < ts.size() && ts[j] != t; j++);
40 assert(j < ts.size());
41 for (; j < ts.size()-1; j++) ts[j] = ts[j+1];
46 template<
class V,
class T>
47 static inline bool find(V& ts,
const T& t)
50 for (; j < ts.size() && ts[j] != t; j++);
61 static inline void copy(
const T& from, T& to)
72 for (
int i = 0; i < from.
size(); i++){