35 template<
class V,
class T>
36 static inline void remove(V& ts,
const T& t)
39 for (; j < (int)ts.size() && ts[j] != t; j++);
40 assert(j < (
int)ts.size());
41 for (; j < (int)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 < (int)ts.size() && ts[j] != t; j++);
51 return j < (int)ts.size();
61 static inline void copy(
const T& from, T& to)
72 for (
int i = 0; i < from.
size(); i++){
static void append(const vec< T > &from, vec< T > &to)
static void copy(const T &from, T &to)
const T & last(void) const
void clear(bool dealloc=false)
static bool find(V &ts, const T &t)