Lines Matching refs:TKey
27 template <typename TKey, typename TValue>
29 static_assert(is_comparable<TKey, TKey>::value, "key is not comparable");
33 typename std::vector<std::pair<TKey, TValue>>::const_iterator;
38 static ImmutableMap<TKey, TValue> CreatePreSorted( in CreatePreSorted()
39 std::initializer_list<std::pair<TKey, TValue>> list) { in CreatePreSorted() argument
41 std::vector<std::pair<TKey, TValue>>(list.begin(), list.end())); in CreatePreSorted()
44 static ImmutableMap<TKey, TValue> CreateAndSort( in CreateAndSort()
45 std::initializer_list<std::pair<TKey, TValue>> list) { in CreateAndSort() argument
46 std::vector<std::pair<TKey, TValue>> data(list.begin(), list.end()); in CreateAndSort()
52 is_comparable<TKey, TKey2>::value>::type>
54 auto cmp = [](const std::pair<TKey, TValue>& candidate, in find()
74 explicit ImmutableMap(std::vector<std::pair<TKey, TValue>> data) in ImmutableMap() argument
77 std::vector<std::pair<TKey, TValue>> data_;