comp.lang.ada
 help / color / mirror / Atom feed
From: Brad Moore <bmoore.ada@gmail.com>
Subject: Re: Use Ada.Containers.Vectors Generic_Sorting or Ada.Containers.Ordered_Sets ?
Date: Wed, 15 Mar 2023 07:24:02 -0700 (PDT)	[thread overview]
Message-ID: <88ab7494-154d-4cc8-a659-b8b34cec5e06n@googlegroups.com> (raw)
In-Reply-To: <b401accd-85ff-4d9e-aa3e-1a68215ef63dn@googlegroups.com>

On Tuesday, February 14, 2023 at 1:49:55 AM UTC-7, reinert wrote:
> Hello, 
> , 
> Sometimes, I have to sort records. One possibility is to use Generig_Sorting under Ada.Containers.Vectors and eksplicitly use Sort. An alternative is to use Ada.Containders.Ordered_Sets and somehow get sorting "for free". 
> 
> I would like to get arguments for and against these two alternatives. 
> 
> reinert

I might use the generic sorting for example, for the case where the data is more static and needs to be sorted once, whereas I'd use an ordered set if the data is continuously being updated and manipulated, or if I needed set semantics.

Brad

      parent reply	other threads:[~2023-03-15 14:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-14  8:49 Use Ada.Containers.Vectors Generic_Sorting or Ada.Containers.Ordered_Sets ? reinert
2023-02-14  9:35 ` Jeffrey R.Carter
2023-02-14 10:46   ` reinert
2023-02-14 18:48     ` G.B.
2023-03-15 10:05 ` Marius Amado-Alves
2023-03-15 14:24 ` Brad Moore [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox