std::list erase

    conns.erase(remove(conns.begin(), conns.end(), conn), conns.end());

Guess you like

Origin www.cnblogs.com/hshy/p/11484183.html