C++ Slack Group -- Diego Stamigni

Diego Stamigni (@diegostamigni) recently started a C++ public Slack team.

C++ Public Slack Team

by Diego Stamigni

About the Slack Team

For C++ news and discussion, request an invite.

Add a Comment

Comments are closed.

Comments (1)

0 0

sharu said on Mar 31, 2018 06:55 PM:

I have pointer p to a boost::iterator range pointing to a vector. I cleared the underlying vector. Since the underlying vector is cleared, the iterator pair of the boost::iterator range is invalidated. There is no clear function for a boost::iterator_range.

How can I clear the boost::iterator range? p->begin() = p->end() and does not result in p.empty() returning true