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++ )
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++ );
60 static inline void copy(
const T& from, T& to )
71 for(
int i = 0; i < from.
size(); i++ )
81 copy( from, to,
true );
const T & last(void) const
void clear(bool dealloc=false)
static bool find(V &ts, const T &t)
static void append(const vec< T > &from, vec< T > &to)
static void copy(const T &from, T &to)
static void remove(V &ts, const T &t)