summaryrefslogtreecommitdiffstats
path: root/gcc/ada/a-ciorma.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/a-ciorma.ads')
-rw-r--r--gcc/ada/a-ciorma.ads8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ada/a-ciorma.ads b/gcc/ada/a-ciorma.ads
index 1c19b81161f..f4c1321835e 100644
--- a/gcc/ada/a-ciorma.ads
+++ b/gcc/ada/a-ciorma.ads
@@ -201,14 +201,18 @@ package Ada.Containers.Indefinite_Ordered_Maps is
(Container : Map;
Process : not null access procedure (Position : Cursor));
+ -- The map container supports iteration in both the forward and reverse
+ -- directions, hence these constructor functions return an object that
+ -- supports the Reversible_Iterator interface.
+
function Iterate
(Container : Map)
- return Map_Iterator_Interfaces.Forward_Iterator'class;
+ return Map_Iterator_Interfaces.Reversible_Iterator'Class;
function Iterate
(Container : Map;
Start : Cursor)
- return Map_Iterator_Interfaces.Reversible_Iterator'class;
+ return Map_Iterator_Interfaces.Reversible_Iterator'Class;
private
OpenPOWER on IntegriCloud