MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / hasIntersection

Method hasIntersection

source/core/StarSet.hpp:222–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220
221template <typename BaseSet>
222bool SetMixin<BaseSet>::hasIntersection(SetMixin const& s) const {
223 for (auto const& v : s) {
224 if (contains(v)) {
225 return true;
226 }
227 }
228 return false;
229}
230
231template <typename BaseSet>
232std::ostream& operator<<(std::ostream& os, SetMixin<BaseSet> const& set) {

Callers 5

compatibleMethod · 0.80
checkMethod · 0.80
recipesFromSubsetMethod · 0.80
allRecipesMethod · 0.80
determineRecipesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected