template<typename T>
class BlackHoleIterator :public iterator<output_iterator_tag,T>
{
    typedef BlackHoleIterator<T> _Self;
public:
    _Self &operator*(){return *this;}
    _Self &operator++(){return *this;}
    _Self &operator++(int){return *this;}
    _Self &operator=(const T &){return *this;}
};
                        

相关文章:

猜你喜欢
  • 2022-12-23
  • 2021-08-20
  • 2021-03-31
  • 2021-06-03
  • 2022-12-23
  • 2021-05-10
  • 2021-11-07
相关资源
相似解决方案