Commit f3db6f96 authored by Aaryaman Sagar's avatar Aaryaman Sagar Committed by Facebook Github Bot

Add map typedefs to EvictingCacheMap

Summary: as title

Reviewed By: yfeldblum

Differential Revision: D6565911

fbshipit-source-id: 5bed8f44520f6c1d7d6e685bf2a38cf97f734205
parent 27e1f366
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#pragma once #pragma once
#include <algorithm> #include <algorithm>
...@@ -133,6 +132,11 @@ class EvictingCacheMap { ...@@ -133,6 +132,11 @@ class EvictingCacheMap {
const TPair, const TPair,
typename NodeList::const_reverse_iterator> const_reverse_iterator; typename NodeList::const_reverse_iterator> const_reverse_iterator;
// the default map typedefs
using key_type = TKey;
using mapped_type = TValue;
using hasher = THash;
/** /**
* Construct a EvictingCacheMap * Construct a EvictingCacheMap
* @param maxSize maximum size of the cache map. Once the map size exceeds * @param maxSize maximum size of the cache map. Once the map size exceeds
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment