[Ada] Add Ada 2022 Key function to sets containers
authorBob Duff <duff@adacore.com>
Tue, 24 May 2022 17:03:21 +0000 (13:03 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 4 Jul 2022 07:45:55 +0000 (07:45 +0000)
commiteb6e8a7acd1b8ecf36489e01cafad61add528f23
treebcf73c38c79882d8e5bacd7cb0a781514d60dff4
parentcac397f3f6f29fe60d78d437c91f8a3842d567c9
[Ada] Add Ada 2022 Key function to sets containers

This patch adds the new Generic_Keys.Key function to the set children
of Ada.Containers.

gcc/ada/

* libgnat/a-cbhase.ads, libgnat/a-cborse.ads,
libgnat/a-cihase.ads, libgnat/a-ciorse.ads,
libgnat/a-cohase.ads, libgnat/a-coorse.ads (Key): New function
that takes a Container parameter, implemented as an expression
function, so it is self explanatory (doesn't need a comment).
gcc/ada/libgnat/a-cbhase.ads
gcc/ada/libgnat/a-cborse.ads
gcc/ada/libgnat/a-cihase.ads
gcc/ada/libgnat/a-ciorse.ads
gcc/ada/libgnat/a-cohase.ads
gcc/ada/libgnat/a-coorse.ads