Constructors
Declared in <folly/container/WeightedEvictingCacheMap.h>
Copy construction is disabled.
WeightedEvictingCacheMap(WeightedEvictingCacheMap const& other) = delete;
» more...
Move-constructs from another map.
WeightedEvictingCacheMap(WeightedEvictingCacheMap&& other) = default;
» more...
Constructs a map with the given maximum total weight.
explicit
WeightedEvictingCacheMap(
std::size_t maxTotalWeight,
THash const& keyHash = THash(),
TKeyEqual const& keyEqual = TKeyEqual());
» more...
| Name | Description |
|---|---|
| other | The map that would be copied. |
| maxTotalWeight | The maximum total weight retained before eviction. |
| keyHash | The hash function used to index keys. |
| keyEqual | The equality comparison used to match keys. |