Loading...   


template <typename C>
void doitlive(C& pC1, C& pC2, C& pC3, C& pC4) {
	for (auto i : pC1) {
		auto k = false;
		for (auto j : pC2) {
			if (j == i) {
				k = !k;
				break;
			}
		}

		if (!k) {
			pC3.push_back(i);
		}
	}
	for (auto i : pC2) {
		auto k = false;
		for (auto j : pC1) {
			if (j == i) {
				k = !k;
				break;
			}
		}

		if (!k) {
			pC4.push_back(i);
		}
	}
}

Raw Paste Data