X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=folly%2Fexperimental%2FBitVectorCoding.h;h=68c20598b6272fd9fa6ea074a8f1d963ffb0dd83;hb=d7b6ad4972b288f90bf57d7597103c44c244decd;hp=7561ae6c94e6dbf73407aabe0462e6a04d527c35;hpb=6f027b290a0ee1754b655b5e739ecb98e11f2f3d;p=folly.git diff --git a/folly/experimental/BitVectorCoding.h b/folly/experimental/BitVectorCoding.h index 7561ae6c..68c20598 100644 --- a/folly/experimental/BitVectorCoding.h +++ b/folly/experimental/BitVectorCoding.h @@ -1,5 +1,5 @@ /* - * Copyright 2017 Facebook, Inc. + * Copyright 2015-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. @@ -20,7 +20,6 @@ #include #include -#include #include #include #include @@ -28,6 +27,7 @@ #include #include #include +#include #include #if !FOLLY_X64 @@ -70,10 +70,11 @@ struct BitVectorCompressedListBase { typedef BitVectorCompressedListBase BitVectorCompressedList; typedef BitVectorCompressedListBase MutableBitVectorCompressedList; -template +template < + class Value, + class SkipValue, + size_t kSkipQuantum = 0, + size_t kForwardQuantum = 0> struct BitVectorEncoder { static_assert(std::is_integral::value && std::is_unsigned::value, @@ -165,10 +166,11 @@ struct BitVectorEncoder { MutableCompressedList result_; }; -template +template < + class Value, + class SkipValue, + size_t kSkipQuantum, + size_t kForwardQuantum> struct BitVectorEncoder:: Layout { static Layout fromUpperBoundAndSize(size_t upperBound, size_t size) { @@ -442,4 +444,5 @@ class BitVectorReader : detail::ForwardPointers, ValueType upperBound_; }; -}} // namespaces +} // namespace compression +} // namespace folly