mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.examples
git-svn-id: svn://ultimatepp.org/upp/trunk@9293 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9fc3e59c64
commit
96fd9388a2
1 changed files with 8 additions and 0 deletions
|
|
@ -12,7 +12,11 @@
|
|||
#include <map>
|
||||
#include <deque>
|
||||
#include <string>
|
||||
#ifdef CPP_11
|
||||
#include <unordered_map>
|
||||
#else
|
||||
#include <tr1/unordered_map>
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
using namespace Upp;
|
||||
|
|
@ -115,7 +119,11 @@ void BenchMap(const char *file)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef CPP_11
|
||||
typedef std::unordered_map< string, vector<int> > HashMap;
|
||||
#else
|
||||
typedef std::tr1::unordered_map< string, vector<int> > HashMap;
|
||||
#endif
|
||||
|
||||
inline bool h_less(const HashMap::value_type *a, const HashMap::value_type *b)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue