X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Ftest%2FAtomicHashArrayTest.cpp;h=780076a1abcd402d1caaf600463814bebedb6069;hb=dce47b8a0cc0e90f93844e66651d68340ed2f940;hp=a99d486dd387db17843192753a3e9022eaa3aba0;hpb=ed8c80a0e0988e4ce687f51ca832a00e4a6b7930;p=folly.git diff --git a/folly/test/AtomicHashArrayTest.cpp b/folly/test/AtomicHashArrayTest.cpp index a99d486d..780076a1 100644 --- a/folly/test/AtomicHashArrayTest.cpp +++ b/folly/test/AtomicHashArrayTest.cpp @@ -22,8 +22,8 @@ #include #include #include -#include #include +#include using namespace std; using namespace folly; @@ -83,16 +83,17 @@ class MmapAllocator { } }; -template +template pair createEntry(int i) { return pair(to(folly::hash::jenkins_rev_mix32(i) % 1000), to(i + 3)); } -template , - class ProbeFcn = AtomicHashArrayLinearProbeFcn> +template < + class KeyT, + class ValueT, + class Allocator = std::allocator, + class ProbeFcn = AtomicHashArrayLinearProbeFcn> void testMap() { typedef AtomicHashArray, std::equal_to, Allocator, ProbeFcn> MyArr; @@ -140,7 +141,9 @@ void testMap() { } } -template, class ProbeFcn = AtomicHashArrayLinearProbeFcn> void testNoncopyableMap() {