c++11: erase using a const_iterator

后端 未结 1 1256
走了就别回头了
走了就别回头了 2021-01-18 01:22

I believe that since C++11, the erase function of most containers (e.g. std::vector) accepts a const_iterator as parameter:

         


        
相关标签:
1条回答
  • 2021-01-18 01:36

    This issue is documented here and it's reported as a partial implementation for now.

    CTRL + F with your browser and search for N2350.

    If you are on Linux it's possible to build a development version of the libcxx library from the LLVM project that you can download from here; I don't know if this solves any of the issues that you are experiencing but I'm proposing it as an alternative to the libstdc++.

    0 讨论(0)
提交回复
热议问题