C++ Advanced, task04_05-Lectures - правилно ли е овърлоуднат << ?
Здравейте,
това правилен начин за овърлоудване на оператор << ли е? ( friend e)
void operator<<(std::vector<ResourceType>& v, const Lecture& lect) {
        for (auto it = lect.getSetOfResources.begin(); it != lect.getSetOfResources.end(); it++) {
            ResourceType type = (*it).getType();
            if (std::find(v.begin(), v.end(), type) == v.end()) {
                v.push_back(type);
            }
        }
    }