Lines Matching refs:KeyT
67 template<typename KeyT, typename ValueT, typename KeyFunctorT>
74 /// SparseSetValFunctor<KeyT, KeyT> - Helper class for the common case of
76 template<typename KeyT, typename KeyFunctorT>
77 struct SparseSetValFunctor<KeyT, KeyT, KeyFunctorT> {
78 unsigned operator()(const KeyT &Key) const {
118 /// @tparam KeyFunctorT A functor that computes an unsigned index from KeyT.
128 using KeyT = typename KeyFunctorT::argument_type;
135 SparseSetValFunctor<KeyT, ValueT, KeyFunctorT> ValIndexOf;
225 iterator find(const KeyT &Key) {
229 const_iterator find(const KeyT &Key) const {
236 bool contains(const KeyT &Key) const { return find(Key) != end(); }
241 size_type count(const KeyT &Key) const { return contains(Key) ? 1 : 0; }
266 ValueT &operator[](const KeyT &Key) {
308 bool erase(const KeyT &Key) {