ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/util.h
(Generate patch)

Comparing deliantra/server/include/util.h (file contents):
Revision 1.51 by root, Sun Jul 1 05:00:18 2007 UTC vs.
Revision 1.52 by root, Wed Jul 11 12:29:06 2007 UTC

405 return !strcmp (a, b); 405 return !strcmp (a, b);
406 } 406 }
407}; 407};
408 408
409// Mostly the same as std::vector, but insert/erase can reorder 409// Mostly the same as std::vector, but insert/erase can reorder
410// the elements, making insret/remove O(1) instead of O(n). 410// the elements, making append(=insert)/remove O(1) instead of O(n).
411// 411//
412// NOTE: only some forms of erase/insert are available 412// NOTE: only some forms of erase are available
413template<class T> 413template<class T>
414struct unordered_vector : std::vector<T, slice_allocator<T> > 414struct unordered_vector : std::vector<T, slice_allocator<T> >
415{ 415{
416 typedef typename unordered_vector::iterator iterator; 416 typedef typename unordered_vector::iterator iterator;
417 417

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines