25#pragma GCC visibility push(default)
36template<
class V,
class T>
37static 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];
47template<
class V,
class T>
48static inline bool find(V& ts,
const T& t)
51 for (; j < ts.size() && ts[j] != t; j++);
62static inline void copy(
const T& from, T& to)
73 for (
int i = 0; i < from.
size(); i++){
85#pragma GCC visibility pop
void clear(bool dealloc=false)
const T & last(void) const
static void append(const vec< T > &from, vec< T > &to)
static void copy(const T &from, T &to)
static bool find(V &ts, const T &t)
static void remove(V &ts, const T &t)