FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
qstring_hfunc.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** FougTools
3 ** Copyright Fougue (30 Mar. 2015)
4 ** contact@fougue.pro
5 **
6 ** This software is a computer program whose purpose is to provide utility
7 ** tools for the C++ language and the Qt toolkit.
8 **
9 ** This software is governed by the CeCILL-C license under French law and
10 ** abiding by the rules of distribution of free software. You can use,
11 ** modify and/ or redistribute the software under the terms of the CeCILL-C
12 ** license as circulated by CEA, CNRS and INRIA at the following URL
13 ** "http://www.cecill.info".
14 ****************************************************************************/
15 
16 #pragma once
17 
18 #include "core.h"
19 
20 #include <QtCore/QHash>
21 #include <QtCore/QString>
22 
23 namespace boost {
24 
26 inline std::size_t hash_value(const QString& key)
27 { return qHash(key); }
28 
29 } // namespace boost
30 
31 namespace std {
32 
34 template<>
35 struct hash<QString>
36 {
37  inline std::size_t operator()(const QString& key) const
38  { return qHash(key); }
39 };
40 
41 } // namespace std
Definition: qstring_hfunc.h:23
STL namespace.
std::size_t hash_value(const QString &key)
Definition: qstring_hfunc.h:26
std::size_t operator()(const QString &key) const
Definition: qstring_hfunc.h:37