steinkrauz - April 24th, 2014

> Recent Entries
> Archive
> Friends
> User Info

April 24th, 2014


04:47 pm - Я у мамы дурачок
Типа разбавить унылость на сайте

template <class T>
vector<T>& operator-= (vector<T>& lhs, vector<T>& rhs) {
    for (vector<int>::iterator it=rhs.begin(); it!=rhs.end(); it!=rhs.end()?++it:it) {
        vector<int>::iterator el = std::find(lhs.begin(),lhs.end(),*it);
        if (el!=lhs.end()) lhs.erase(el);
    }	
    return lhs;
}

(2 comments | Leave a comment)


Previous Day [Archive] Next Day

> Go to Top
LJ.Rossia.org