Re: Adding functions to generic package
- From: Preben Randhol <randhol+valid_for_reply_from_news@xxxxxxx>
- Date: 30 May 2005 22:45:22 +0200
On 2005-05-29, Matthew Heaney <matthewjheaney@xxxxxxxxxxxxx> wrote:
> Preben Randhol <randhol+valid_for_reply_from_news@xxxxxxx> writes:
>
>> On 2005-05-29, Preben Randhol wrote:
>> > Another question. Why isn't there a Swap function in the library
>> > like the one that you have in the Reverse_Container? I can make
>> > something using two splices although a bit less effective I should
>> > imagine?
>>
>> I meant not the same as it would have to be:
>>
>> procedure Swap (L,R : Iterator_Type);
>
>
> OK, that makes sense. There's an operation like that (Swap_Links) in
> the Ada 200Y standard container library. I can add that to Charles.
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.
Preben
.
- Follow-Ups:
- Re: Adding functions to generic package
- From: Marius Amado Alves
- Re: Adding functions to generic package
- References:
- Adding functions to generic package
- From: Preben Randhol
- Re: Adding functions to generic package
- From: Matthew Heaney
- Re: Adding functions to generic package
- From: Preben Randhol
- Re: Adding functions to generic package
- From: Matthew Heaney
- Re: Adding functions to generic package
- From: Preben Randhol
- Re: Adding functions to generic package
- From: Matthew Heaney
- Re: Adding functions to generic package
- From: Preben Randhol
- Re: Adding functions to generic package
- From: Preben Randhol
- Re: Adding functions to generic package
- From: Matthew Heaney
- Adding functions to generic package
- Prev by Date: Re: Adding functions to generic package
- Next by Date: Re: Adding functions to generic package
- Previous by thread: Re: Adding functions to generic package
- Next by thread: Re: Adding functions to generic package
- Index(es):
Relevant Pages
|