阅读背景:

如何避免实现const和非const迭代器的代码重复?

来源:互联网 

I'm implementing a custom container with an STL-like interface. I have to provide a regular iterator and a const iterator. Most of the code for the two versions of the iterators is identical . How can I avoid this duplication?I'm implementing a custom container with an STL




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: