mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 08:34:39 +08:00
issue #67
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#define PHMAP_BIDIRECTIONAL 1
|
||||||
#include <parallel_hashmap/phmap.h>
|
#include <parallel_hashmap/phmap.h>
|
||||||
|
|
||||||
using phmap::flat_hash_map;
|
using phmap::flat_hash_map;
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -18,6 +20,20 @@ int main()
|
|||||||
|
|
||||||
// and print it
|
// and print it
|
||||||
std::cout << "bill's email is: " << email["bill"] << "\n";
|
std::cout << "bill's email is: " << email["bill"] << "\n";
|
||||||
|
|
||||||
|
phmap::flat_hash_set<int> v1 { 1, 2, 3, 4, 5 };
|
||||||
|
|
||||||
|
for (auto x : v1)
|
||||||
|
cout << (x) << " ";
|
||||||
|
|
||||||
|
auto i1 = v1.end();
|
||||||
|
for ( ;i1 != v1.begin(); --i1)
|
||||||
|
{
|
||||||
|
if (i1 != v1.end())
|
||||||
|
cout << (*i1) << " ";
|
||||||
|
}
|
||||||
|
if (i1 != v1.end())
|
||||||
|
cout << (*i1);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -618,7 +618,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PHMAP_HAVE_SSSE3
|
#ifndef PHMAP_HAVE_SSSE3
|
||||||
#ifdef __SSSE3__
|
#if defined(__SSSE3__) || defined(__AVX2__)
|
||||||
#define PHMAP_HAVE_SSSE3 1
|
#define PHMAP_HAVE_SSSE3 1
|
||||||
#else
|
#else
|
||||||
#define PHMAP_HAVE_SSSE3 0
|
#define PHMAP_HAVE_SSSE3 0
|
||||||
|
|||||||
Vendored
+4576
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user