… | |
… | |
166 | T *operator ->() const { return p; } |
166 | T *operator ->() const { return p; } |
167 | |
167 | |
168 | operator T *() const { return p; } |
168 | operator T *() const { return p; } |
169 | }; |
169 | }; |
170 | |
170 | |
|
|
171 | typedef refptr<player> player_ptr; |
|
|
172 | typedef refptr<object> object_ptr; |
|
|
173 | typedef refptr<archetype> arch_ptr; |
|
|
174 | |
171 | struct str_hash |
175 | struct str_hash |
172 | { |
176 | { |
173 | std::size_t operator ()(const char *s) const |
177 | std::size_t operator ()(const char *s) const |
174 | { |
178 | { |
175 | unsigned long hash = 0; |
179 | unsigned long hash = 0; |