May STL iterator methods throw an exception

后端 未结 4 757
抹茶落季
抹茶落季 2020-12-09 17:07

Destructors may not throw exceptions (so stack unwinding can complete during exception handling), and must deallocate any resources allocated to the object (so no resources

4条回答
  •  -上瘾入骨i
    2020-12-09 17:40

    no copy constructor or assignment operator of a returned iterator throws an exception

    That's from the C++03 standard. I don't think that the standard goes any further than that.

    Btw. it's 23.1.10

提交回复
热议问题