From e9abc1b1917c5cec2d66923a58d1151407fe2675 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 21 Apr 2008 17:07:57 +0000 Subject: Removed some dead code svn-id: r31645 --- common/func.h | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) diff --git a/common/func.h b/common/func.h index c2e1d0763e..fa8f0d2151 100644 --- a/common/func.h +++ b/common/func.h @@ -201,52 +201,6 @@ inline ConstMemFunc1 mem_fun(Result (T::*f)(Arg) const) { return ConstMemFunc1(f); } -template -class BackInsertIterator { -private: - Cont *_container; - -public: - BackInsertIterator(Cont &c) : _container(&c) {} - - BackInsertIterator &operator =(const typename Cont::value_type &v) { - _container->push_back(v); - return *this; - } - - BackInsertIterator &operator *() { return *this; } - BackInsertIterator &operator ++() { return *this; } - BackInsertIterator operator ++(int) { return *this; } -}; - -template -BackInsertIterator back_inserter(Cont &c) { - return BackInsertIterator(c); -} - -template -class FrontInsertIterator { -private: - Cont *_container; - -public: - FrontInsertIterator(Cont &c) : _container(&c) {} - - FrontInsertIterator &operator =(const typename Cont::value_type &v) { - _container->push_front(v); - return *this; - } - - FrontInsertIterator &operator *() { return *this; } - FrontInsertIterator &operator ++() { return *this; } - FrontInsertIterator operator ++(int) { return *this; } -}; - -template -FrontInsertIterator front_inserter(Cont &c) { - return FrontInsertIterator(c); -} - // functor code template -- cgit v1.2.3