Lines Matching refs:key

228     auto key             = key_type{};  in test_insert()
235 auto &key = key_value.first; in test_insert() local
237 const auto key_const = key; in test_insert()
242 …ret.second, PETSC_COMM_SELF, PETSC_ERR_PLIB, "%s reinserted key '%s'", op, this->key_printer(key)); in test_insert()
243key, PETSC_COMM_SELF, PETSC_ERR_PLIB, "%s returned iterator key '%s' != expected '%s'", this->key… in test_insert()
245 …k(map, map[key] == value, PETSC_COMM_SELF, PETSC_ERR_PLIB, "%s map[%s] '%s' != '%s'", op, this->ke… in test_insert()
253 PetscCall(CHECK_REINSERT(map.emplace(key, value))); in test_insert()
254 …PetscCall(CHECK_REINSERT(map.emplace(std::piecewise_construct, std::make_tuple(key), std::make_tup… in test_insert()
255 PetscCall(CHECK_REINSERT(map.insert(std::make_pair(key, value)))); in test_insert()
264 PetscCallCXX(map[key] = value); in test_insert()
268 …MapCheck(map, map[key] == value, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Map default key %s != map value… in test_insert()
271 value_type kv{key, value}; in test_insert()
379 auto &&key = kv.first; in test_find()
381 auto it = map.find(key); in test_find()
383 …!= map.end(), PETSC_COMM_SELF, PETSC_ERR_PLIB, "Failed to find %s in map", this->key_printer(key)); in test_find()
384 …t->first == key, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Find iterator key %s != expected %s", this->key… in test_find()
386key), PETSC_COMM_SELF, PETSC_ERR_PLIB, "map.contains(key) reports false, even though map.find(key)… in test_find()
387 …apCheck(map, map.count(key) == 1, PETSC_COMM_SELF, PETSC_ERR_PLIB, "map.count(%s) %zu != 1", this-… in test_find()
390 const auto range = map.equal_range(key); in test_find()
395 … == key, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Equal range iterator key %s != expected %s", this->key_… in test_find()
658 const auto int_printer = [](int key, std::string &buf) { in main() argument
660 PetscCallCXX(buf = std::to_string(key)); in main()
668 const auto foo_printer = [](const Foo &key, std::string &buf) { in main() argument
670 PetscCall(key.to_string(buf)); in main()