| 680 | { |
| 681 | template <typename T1, typename T2> |
| 682 | bool contains(std::vector<T1> const& a, std::vector<T2> const& b) |
| 683 | { |
| 684 | for (auto i = a.begin(), y = a.end(); i != y; ++i) { |
| 685 | bool match = true; |
| 686 | |
| 687 | auto ii = i; |
| 688 | for (auto j = b.begin(), z = b.end(); j != z; ++j) { |
| 689 | if (ii == a.end() || *j != *ii) { |
| 690 | match = false; |
| 691 | break; |
| 692 | } |
| 693 | ii++; |
| 694 | } |
| 695 | if (match) { |
| 696 | return true; |
| 697 | } |
| 698 | } |
| 699 | return false; |
| 700 | } |
| 701 | } |
| 702 | |
| 703 | std::vector<CellOrParticleDescription> DescriptionEditService::getConstructorToMainGenomes(DataDescription const& data) |
no test coverage detected