Deleted Added
sdiff udiff text old ( 2665:a124942bacb8 ) new ( 8229:78bf55f23338 )
full compact
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 18 unchanged lines hidden (view full) ---

27 *
28 * Authors: Nathan Binkert
29 * Steve Reinhardt
30 */
31
32#ifndef __STR_HH__
33#define __STR_HH__
34
35#include <cctype>
36#include <sstream>
37#include <string>
38#include <vector>
39
40template<class> class Hash;
41template<>
42class Hash<std::string> {
43public:
44 unsigned operator()(const std::string &s) {
45 std::string::const_iterator i = s.begin();
46 std::string::const_iterator end = s.end();
47 unsigned hash = 5381;

--- 96 unchanged lines hidden ---