黑洞迭代器

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;}
};
                        
posted @ 2012-08-15 21:58  vsuu  阅读(119)  评论(0编辑  收藏  举报