Lines Matching refs:dst
340 bool content_location_unchanged( const ContainerType& dst ) { in content_location_unchanged()
345 return std::equal(dst.begin(), dst.end(), locations.begin(), is_same_location); in content_location_unchanged()
349 bool content_location_changed( const ContainerType& dst ) { in content_location_changed()
353 return std::equal(dst.begin(), dst.end(), locations.begin(), is_not_same_location); in content_location_changed()
465 bool content_location_unchanged( const container_type& dst ) { in content_location_unchanged()
466 return locations.content_location_unchanged(dst); in content_location_unchanged()
469 bool content_location_changed( const container_type& dst ) { in content_location_changed()
470 return locations.content_location_changed(dst); in content_location_changed()
474 void verify_size( const ContainerType& dst ) { in verify_size()
475 REQUIRE(container_size == dst.size()); in verify_size()
478 void verify_content_equal_to_source( const container_type& dst ) { in verify_content_equal_to_source()
479 … REQUIRE(ContainerTraits::equal(dst, init_iterator_type(0), init_iterator_type(container_size))); in verify_content_equal_to_source()
482 …void verify_content_equal_to_source( const container_type& dst, std::size_t number_of_constructed_… in verify_content_equal_to_source()
483 REQUIRE(number_of_constructed_items <= dst.size()); in verify_content_equal_to_source()
484 …REQUIRE(std::equal(dst.begin(), dst.begin() + number_of_constructed_items, init_iterator_type(0))); in verify_content_equal_to_source()
487 void verify_content_shallow_moved( const container_type& dst ) { in verify_content_shallow_moved()
488 verify_size(dst); in verify_content_shallow_moved()
489 …REQUIRE_MESSAGE(content_location_unchanged(dst), "Container move ctor actually changed element loc… in verify_content_shallow_moved()
491 verify_content_equal_to_source(dst); in verify_content_shallow_moved()
494 void verify_content_deep_moved( const container_type& dst ) { in verify_content_deep_moved()
495 verify_size(dst); in verify_content_deep_moved()
496 …REQUIRE_MESSAGE(content_location_changed(dst), "Container did not changed element locations for un… in verify_content_deep_moved()
497 … REQUIRE_MESSAGE(std::all_of(dst.begin(), dst.end(), is_state_predicate<Foo::MoveInitialized>()), in verify_content_deep_moved()
501 verify_content_equal_to_source(dst); in verify_content_deep_moved()
504 …void verify_part_of_content_deep_moved(container_type const& dst, std::size_t number_of_constructe… in verify_part_of_content_deep_moved()
505 …REQUIRE_MESSAGE(content_location_changed(dst), "Vector actually did not changed element locations … in verify_part_of_content_deep_moved()
506 …REQUIRE_MESSAGE(std::all_of(dst.begin(), dst.begin() + number_of_constructed_items, is_state_predi… in verify_part_of_content_deep_moved()
507 if (dst.size() != number_of_constructed_items) { in verify_part_of_content_deep_moved()
508 …REQUIRE_MESSAGE(std::all_of(dst.begin() + number_of_constructed_items, dst.end(), is_state_predica… in verify_part_of_content_deep_moved()
510 verify_content_equal_to_source(dst, number_of_constructed_items); in verify_part_of_content_deep_moved()
657 container_type dst(std::move(fixture.source)); in test_move_ctor_single_argument()
659 fixture.verify_content_shallow_moved(dst); in test_move_ctor_single_argument()
660 fixture.verify_allocator_was_moved(dst.get_allocator()); in test_move_ctor_single_argument()
672 container_type dst(std::move(fixture.source), fixture.source.get_allocator()); in test_move_ctor_with_equal_allocator()
674 fixture.verify_content_shallow_moved(dst); in test_move_ctor_with_equal_allocator()
687 container_type dst(std::move(fixture.source), alloc); in test_move_ctor_with_unequal_allocator()
689 fixture.verify_content_deep_moved(dst); in test_move_ctor_with_unequal_allocator()
699 container_type dst(fixture.dst_allocator); in test_move_assignment_POCMA_true_stateful_allocator()
700 dst = std::move(fixture.source); in test_move_assignment_POCMA_true_stateful_allocator()
702 fixture.verify_content_shallow_moved(dst); in test_move_assignment_POCMA_true_stateful_allocator()
703 fixture.verify_allocator_was_moved(dst.get_allocator()); in test_move_assignment_POCMA_true_stateful_allocator()
720 container_type dst; in test_move_assignment_POCMA_true_stateless_allocator() local
721 dst = std::move(fixture.source); in test_move_assignment_POCMA_true_stateless_allocator()
723 fixture.verify_content_shallow_moved(dst); in test_move_assignment_POCMA_true_stateless_allocator()
732 container_type dst(fixture.source_allocator); in test_move_assignment_POCMA_false_equal_allocator()
733 …REQUIRE_MESSAGE(fixture.source.get_allocator() == dst.get_allocator(), "Incorrect test setup: allo… in test_move_assignment_POCMA_false_equal_allocator()
737 dst = std::move(fixture.source); in test_move_assignment_POCMA_false_equal_allocator()
739 fixture.verify_content_shallow_moved(dst); in test_move_assignment_POCMA_false_equal_allocator()
751 container_type dst(fixture.dst_allocator); in test_move_assignment_POCMA_false_unequal_allocator()
752 dst = std::move(fixture.source); in test_move_assignment_POCMA_false_unequal_allocator()
754 fixture.verify_content_deep_moved(dst); in test_move_assignment_POCMA_false_unequal_allocator()
778 …REQUIRE_THROW_EXCEPTION(container_type dst(std::move(fixture.source), fixture.dst_allocator), std:… in test_ex_move_ctor_unequal_allocator_memory_failure()
790 …REQUIRE_THROW_EXCEPTION(container_type dst(std::move(fixture.source), fixture.dst_allocator), FooE… in test_ex_move_ctor_unequal_allocator_element_ctor_failure()
823 …container_type dst(std::make_move_iterator(fixture.source.begin()), std::make_move_iterator(fixtur… in test_constructor_with_move_iterators()
825 fixture.verify_content_deep_moved(dst); in test_constructor_with_move_iterators()
835 container_type dst(fixture.dst_allocator); in test_assign_with_move_iterators()
836 …dst.assign(std::make_move_iterator(fixture.source.begin()), std::make_move_iterator(fixture.source… in test_assign_with_move_iterators()
838 fixture.verify_content_deep_moved(dst); in test_assign_with_move_iterators()