25 #pragma GCC visibility push(default)
36 template<
class V,
class T>
37 static inline void remove(V& ts,
const T& t)
40 for (; j < ts.size() && ts[j] != t; j++);
41 assert(j < ts.size());
42 for (; j < ts.size()-1; j++) ts[j] = ts[j+1];
47 template<
class V,
class T>
48 static inline bool find(V& ts,
const T& t)
51 for (; j < ts.size() && ts[j] != t; j++);
62 static inline void copy(
const T& from, T& to)
73 for (
int i = 0; i < from.
size(); i++){
85 #pragma GCC visibility pop