37template<
class V,
class T>
38static inline void remove(V& ts,
const T& t)
41 for (; j < ts.size() && ts[j] != t; j++);
43 for (; j < ts.size()-1; j++) ts[j] = ts[j+1];
48template<
class V,
class T>
49static inline bool find(V& ts,
const T& t)
52 for (; j < ts.size() && ts[j] != t; j++);
63static inline void copy(
const T& from, T& to)
70static inline void copy(
const vec<T>& from,
vec<T>& to,
bool append =
false)
74 for (
int i = 0; i < from.size(); i++){
76 copy(from[i], to.last());
81static inline void append(
const vec<T>& from,
vec<T>& to){ copy(from, to,
true); }