Lines Matching refs:it

296       for (auto it = map.cbegin(); it != map.cend(); ++it) {  in test_insert()  local
298 const auto found = std::lower_bound(kv_begin, key_value_pairs.cend(), *it); in test_insert()
302 …r (%s, %s) not present in input range!", this->key_printer(it->first), this->value_printer(it->sec… in test_insert()
303 …d key-value pair (%s -> %s) %td is < 0", this->key_printer(it->first), this->value_printer(it->sec… in test_insert()
352 auto it = map.find(saved_value.first); in test_insert() local
355 …MapCheck(map, it != map.end(), PETSC_COMM_SELF, PETSC_ERR_PLIB, "Map failed no longer contains key… in test_insert()
356it->first == saved_value.first, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Map founnd iterator key (%s) doe… in test_insert()
357it->second == saved_value.second, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Map founnd iterator value (%s)… in test_insert()
381 auto it = map.find(key); in test_find() local
383 …MapCheck(map, it != map.end(), PETSC_COMM_SELF, PETSC_ERR_PLIB, "Failed to find %s in map", this->… in test_find()
384 …MapCheck(map, it->first == key, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Find iterator key %s != expected… in test_find()
385 …MapCheck(map, it->second == value, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Find iterator value %s != exp… in test_find()
421 …for (auto it = map.begin(); it != map.end(); ++it) MapCheck(map, false, PETSC_COMM_SELF, PETSC_ERR… in test_erase() local
429 const auto it = map.begin(); in test_erase() local
430 const auto begin_key = it->first; in test_erase()
431 const auto begin_val = it->second; in test_erase()
433 PetscCallCXX(map.erase(it)); in test_erase()
440 for (auto it = map.begin(); it != map.end(); ++it) { in test_erase() local
441 const auto before = it; in test_erase()
443 PetscCallCXX(map.erase(it)); in test_erase()
444 …MapCheck(map, before == it, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Iterator changed during erase%s", ""… in test_erase()
520 PetscErrorCode test_iterators(map_type &map, It it, It it2) noexcept in test_iterators() argument
529 …MapCheck(map, it == it2, PETSC_COMM_SELF, PETSC_ERR_PLIB, "%s iterator does not equal itself?", it… in test_iterators()
530 PetscCallCXX(++it); in test_iterators()
532 …MapCheck(map, it == it2, PETSC_COMM_SELF, PETSC_ERR_PLIB, "%s iterator does not equal itself after… in test_iterators()
533 PetscCallCXX(--it); in test_iterators()
535 …MapCheck(map, it == it2, PETSC_COMM_SELF, PETSC_ERR_PLIB, "%s iterator does not equal itself after… in test_iterators()
542 PetscCallCXX(it = map.begin()); in test_iterators()
544 if (it == map.end()) break; in test_iterators()
545 PetscCallCXX(++it); in test_iterators()
548 PetscCallCXX(it = map.begin()); in test_iterators()
550 if (it == map.end()) break; in test_iterators()
551 PetscCallCXX(it++); in test_iterators()
556 PetscCallCXX(it = std::prev(map.end())); in test_iterators()
558 if (it == map.begin()) break; in test_iterators()
559 PetscCallCXX(--it); in test_iterators()
562 PetscCallCXX(it = std::prev(map.end())); in test_iterators()
564 if (it == map.begin()) break; in test_iterators()
565 PetscCallCXX(it--); in test_iterators()