~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/string.h

[patch 003/129] Merge patch for revision 1788 from InnoDB SVN:
revno: 1788
revision-id: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:5670
parent: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:5663
committer: marko
timestamp: Wed 2009-08-12 12:16:37 +0000
message:
  branches/zip: trx_undo_rec_copy(): Add const qualifier to undo_rec.
  This is a non-functional change.
modified:
  include/trx0rec.h              2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Ftrx0rec.h
  include/trx0rec.ic             2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Ftrx0rec.ic
  trx/trx0rec.c                  2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Ftrx%2Ftrx0rec.c
diff:
=== modified file 'include/trx0rec.h'

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
namespace util
47
47
{
48
48
 
49
 
 
50
 
namespace string {
51
 
typedef boost::shared_ptr<std::string> shared_ptr;
52
 
typedef boost::shared_ptr<const std::string> const_shared_ptr;
53
 
}
54
 
 
55
49
struct insensitive_equal_to : std::binary_function<std::string, std::string, bool>
56
50
{
57
51
  bool operator()(std::string const& x, std::string const& y) const
76
70
  }
77
71
};
78
72
 
79
 
struct sensitive_hash : std::unary_function< std::vector<char>, std::size_t>
80
 
{
81
 
  std::size_t operator()(std::vector<char> const& x) const
82
 
  {
83
 
    std::size_t seed = 0;
84
 
 
85
 
    for(std::vector<char>::const_iterator it = x.begin(); it != x.end(); ++it)
86
 
    {
87
 
      boost::hash_combine(seed, *it);
88
 
    }
89
 
 
90
 
    return seed;
91
 
  }
92
 
};
93
 
 
94
73
} /* namespace util */
95
74
} /* namespace drizzled */
96
75