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.63 by root, Sat Mar 15 13:52:38 2008 UTC vs.
Revision 1.64 by root, Mon Mar 24 20:39:34 2008 UTC

269 { 269 {
270 typedef slice_allocator<U> other; 270 typedef slice_allocator<U> other;
271 }; 271 };
272 272
273 slice_allocator () throw () { } 273 slice_allocator () throw () { }
274 slice_allocator (const slice_allocator &o) throw () { } 274 slice_allocator (const slice_allocator &) throw () { }
275 template<typename Tp2> 275 template<typename Tp2>
276 slice_allocator (const slice_allocator<Tp2> &) throw () { } 276 slice_allocator (const slice_allocator<Tp2> &) throw () { }
277 277
278 ~slice_allocator () { } 278 ~slice_allocator () { }
279 279
288 void deallocate (pointer p, size_type n) 288 void deallocate (pointer p, size_type n)
289 { 289 {
290 sfree<Tp> (p, n); 290 sfree<Tp> (p, n);
291 } 291 }
292 292
293 size_type max_size ()const throw () 293 size_type max_size () const throw ()
294 { 294 {
295 return size_t (-1) / sizeof (Tp); 295 return size_t (-1) / sizeof (Tp);
296 } 296 }
297 297
298 void construct (pointer p, const Tp &val) 298 void construct (pointer p, const Tp &val)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines