return result; \
namespace BASE_HASH_NAMESPACE {
-#if defined(COMPILER_GCC)
template<>
struct hash<base::StringPiece> {
}
};
-#elif defined(COMPILER_MSVC)
-
-inline size_t hash_value(const base::StringPiece& sp) {
- HASH_STRING_PIECE(base::StringPiece, sp);
-}
-inline size_t hash_value(const base::StringPiece16& sp16) {
- HASH_STRING_PIECE(base::StringPiece16, sp16);
-}
-
-#endif // COMPILER
-
} // namespace BASE_HASH_NAMESPACE
#endif // BASE_STRINGS_STRING_PIECE_H_