MCPcopy Create free account
hub / github.com/chrxh/alien / contains

Function contains

source/EngineInterface/DescriptionEditService.cpp:682–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
703std::vector<CellOrParticleDescription> DescriptionEditService::getConstructorToMainGenomes(DataDescription const& data)

Callers 1

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected