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.127 by root, Sat Nov 17 23:40:02 2018 UTC vs.
Revision 1.128 by root, Tue Nov 27 18:47:35 2018 UTC

37#include <new> 37#include <new>
38#include <vector> 38#include <vector>
39 39
40#include <glib.h> 40#include <glib.h>
41 41
42#include <flat_hash_map.hpp>
43
42#include <shstr.h> 44#include <shstr.h>
43#include <traits.h> 45#include <traits.h>
44 46
45#if DEBUG_SALLOC 47#if DEBUG_SALLOC
46# define g_slice_alloc0(s) debug_slice_alloc0(s) 48# define g_slice_alloc0(s) debug_slice_alloc0(s)
617 619
618 std::size_t operator ()(const shstr &s) const 620 std::size_t operator ()(const shstr &s) const
619 { 621 {
620 return strhsh (s); 622 return strhsh (s);
621 } 623 }
624
625 typedef ska::power_of_two_hash_policy hash_policy;
622}; 626};
623 627
624struct str_equal 628struct str_equal
625{ 629{
626 bool operator ()(const char *a, const char *b) const 630 bool operator ()(const char *a, const char *b) const

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines