Home | History | Annotate | Download | only in util

Lines Matching refs:TValue

27 template <typename TKey, typename TValue>
32 std::vector<std::pair<TKey, TValue>> mData;
34 explicit ImmutableMap(std::vector<std::pair<TKey, TValue>> data) : mData(std::move(data)) {
46 static ImmutableMap<TKey, TValue> createPreSorted(
47 std::initializer_list<std::pair<TKey, TValue>> list) {
48 return ImmutableMap(std::vector<std::pair<TKey, TValue>>(list.begin(), list.end()));
51 static ImmutableMap<TKey, TValue> createAndSort(
52 std::initializer_list<std::pair<TKey, TValue>> list) {
53 std::vector<std::pair<TKey, TValue>> data(list.begin(), list.end());
61 auto cmp = [](const std::pair<TKey, TValue>& candidate, const TKey2& target) -> bool {