This commit is contained in:
greg
2020-10-02 14:08:27 -04:00
parent c8a0e5a2b8
commit 535ea23741
3 changed files with 4593 additions and 1 deletions
+16
View File
@@ -1,8 +1,10 @@
#include <iostream>
#include <string>
#define PHMAP_BIDIRECTIONAL 1
#include <parallel_hashmap/phmap.h>
using phmap::flat_hash_map;
using namespace std;
int main()
{
@@ -18,6 +20,20 @@ int main()
// and print it
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;
}
+1 -1
View File
@@ -618,7 +618,7 @@
#endif
#ifndef PHMAP_HAVE_SSSE3
#ifdef __SSSE3__
#if defined(__SSSE3__) || defined(__AVX2__)
#define PHMAP_HAVE_SSSE3 1
#else
#define PHMAP_HAVE_SSSE3 0
+4576
View File
File diff suppressed because it is too large Load Diff