X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Ftest%2FFBVectorBenchmark.cpp;h=eaa0bc90357f66f382e1d2b22f0d76173f672db3;hp=ca327cdf0d5917b07979d110a44354e401fe03bb;hb=6c511999f92066ed84778bca4491c8d139a3195d;hpb=520e20a8baebc98a5ec84d67865da4cf9819f88a diff --git a/folly/test/FBVectorBenchmark.cpp b/folly/test/FBVectorBenchmark.cpp index ca327cdf..eaa0bc90 100644 --- a/folly/test/FBVectorBenchmark.cpp +++ b/folly/test/FBVectorBenchmark.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2017 Facebook, Inc. + * Copyright 2012-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,9 +25,9 @@ #include #include #include -#include #include #include +#include #include #include @@ -69,13 +69,13 @@ std::list RandomList(unsigned int maxSize) { return lst; } -template T randomObject(); +template T randomObject(); -template<> int randomObject() { +template <> int randomObject() { return random(0, 1024); } -template<> folly::fbstring randomObject() { +template <> folly::fbstring randomObject() { folly::fbstring result; randomString(&result); return result;