pingus-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unneccessary helper function


From: Ingo Ruhnke
Subject: Re: Unneccessary helper function
Date: 07 Jun 2002 21:20:39 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

David Philippi <address@hidden> writes:

> Correcting myself *g* : merge() has the disadvantage of clearing the list 
> beeing inserted, but there's still 
> void insert(iterator i, InIter start, InIter end)
> which can be used like 
> my_list.insert( my_list.end(), append_list.begin(), append_list.end() )

insert() doesn't really help here, in the few places where I used
append(), it is used to directly append a list return from a function
to another list, using insert() would force a temporary variable
there, which would be kind of ugly. 

ListHelper::append (editor_objs, i->create_EditorObj ());

-- 
Advent:     http://www.freesoftware.fsf.org/advent/
Feuerkraft: http://www.freesoftware.fsf.org/feuerkraft/
Pingus:     http://pingus.seul.org/           || ICQ:      59461927
Home:       http://pingus.seul.org/~grumbel/  || JabberID: address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]