From: Matthew Heaney <matthewjheaney@earthlink.net>
Subject: Re: Adding functions to generic package
Date: Wed, 01 Jun 2005 01:41:04 GMT
Date: 2005-06-01T01:41:04+00:00 [thread overview]
Message-ID: <ull5uluq6.fsf@earthlink.net> (raw)
In-Reply-To: 429b7b62$1@news.broadpark.no
Preben Randhol <randhol+valid_for_reply_from_news@pvv.org> writes:
> I guess it must be:
>
> procedure Swap (Container : in out Container_Type; L,R : Iterator_Type);
>
> as I want the Swap to Swap say element in position 4 with element in
> postion 2 in the list but by using iterators to point at them.
Yes, you need to pass the container too, since moving a node can change
the head and foot pointers, which are part of the representation of the
Container type.
next prev parent reply other threads:[~2005-06-01 1:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-28 15:44 Adding functions to generic package Preben Randhol
2005-05-28 16:27 ` Matthew Heaney
2005-05-28 18:18 ` Preben Randhol
2005-05-28 18:20 ` Preben Randhol
2005-05-29 0:56 ` Matthew Heaney
2005-05-29 8:41 ` Preben Randhol
2005-05-29 14:37 ` Matthew Heaney
2005-05-29 21:31 ` Preben Randhol
2005-05-29 21:33 ` Preben Randhol
2005-05-29 22:30 ` Matthew Heaney
2005-05-30 20:45 ` Preben Randhol
2005-05-30 22:28 ` Marius Amado Alves
2005-06-01 1:50 ` Matthew Heaney
2005-06-02 12:49 ` Marius Amado Alves
2005-06-02 13:11 ` Matthew Heaney
2005-06-01 1:41 ` Matthew Heaney [this message]
2005-05-29 22:27 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox