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

Function intersect

source/core/StarAlgorithm.hpp:106–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104// Return intersection of sorted containers.
105template <typename Container>
106Container intersect(Container const& a, Container const& b) {
107 Container r;
108 std::set_intersection(a.begin(), a.end(), b.begin(), b.end(), std::inserter(r, r.end()));
109 return r;
110}
111
112template <typename MapType1, typename MapType2>
113bool mapMerge(MapType1& targetMap, MapType2 const& sourceMap, bool overwrite = false) {

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected