diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-23 11:04:39 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-23 11:04:39 +0000 |
commit | 0148118ba5fa019083e00017d0de0d1ec230450b (patch) | |
tree | 5fb6c077b0e3f24d74204d0e539e282bdb998d66 /gcc/ada/a-ciorma.ads | |
parent | 39b257f5ddee46f293389e2fa0505dfcc4e95592 (diff) | |
download | gcc-0148118ba5fa019083e00017d0de0d1ec230450b.tar.gz |
2011-11-23 Ed Schonberg <schonberg@adacore.com>
* exp_ch5.adb (Expand_Iterator_Loop): Wrap the expanded loop
and the cursor declarations in a block, so that the loop variable
is local to the construct.
2011-11-23 Matthew Heaney <heaney@adacore.com>
* a-coorma.ads, a-ciorma.ads, a-cborma.ads (Iterate): Returns
type Reversible_Iterator'Class.
* a-coorma.adb, a-ciorma.adb, a-cborma.adb (Iterator):
Declare type as limited.
(First, Last): Return value depends on iterator's start node value.
(Next, Previous): Call corresponding Cursor-based operation.
(Iterate): Indicate whether complete or partial iteration
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181659 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-ciorma.ads')
-rw-r--r-- | gcc/ada/a-ciorma.ads | 8 |
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 |