folly::WeightedEvictingCacheMap::WeightedEvictingCacheMap

Constructors

Synopses

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...

Parameters

NameDescription
otherThe map that would be copied.
maxTotalWeightThe maximum total weight retained before eviction.
keyHashThe hash function used to index keys.
keyEqualThe equality comparison used to match keys.