summaryrefslogtreecommitdiff
path: root/gcc/ada/a-coormu.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/a-coormu.ads')
-rw-r--r--gcc/ada/a-coormu.ads22
1 files changed, 21 insertions, 1 deletions
diff --git a/gcc/ada/a-coormu.ads b/gcc/ada/a-coormu.ads
index a832cac77f0..8d684741e94 100644
--- a/gcc/ada/a-coormu.ads
+++ b/gcc/ada/a-coormu.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 2004-2011, Free Software Foundation, Inc. --
+-- Copyright (C) 2004-2013, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -512,4 +512,24 @@ private
Busy => 0,
Lock => 0));
+ type Iterator is new Limited_Controlled and
+ Set_Iterator_Interfaces.Reversible_Iterator with
+ record
+ Container : Set_Access;
+ Node : Node_Access;
+ end record;
+
+ overriding procedure Finalize (Object : in out Iterator);
+
+ overriding function First (Object : Iterator) return Cursor;
+ overriding function Last (Object : Iterator) return Cursor;
+
+ overriding function Next
+ (Object : Iterator;
+ Position : Cursor) return Cursor;
+
+ overriding function Previous
+ (Object : Iterator;
+ Position : Cursor) return Cursor;
+
end Ada.Containers.Ordered_Multisets;