diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2013-04-19 06:23:16 -0500 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2013-04-19 06:23:16 -0500 |
commit | cd7cb45fc78ae9a62968372eae37da08444da8ca (patch) | |
tree | 034e6313862f8ff73c460181d06785834ef5f25a /gcc/ada/a-cidlli.ads | |
parent | e2d763ab505e4e070c7661d2373c2c9b43f45cb1 (diff) | |
parent | 52108848ca6e017bc3ca0efeef67a450d7e32e56 (diff) | |
download | gcc-cd7cb45fc78ae9a62968372eae37da08444da8ca.tar.gz |
Merge remote-tracking branch 'origin/cilkplus' into cilkplus-simd-rewrite
Diffstat (limited to 'gcc/ada/a-cidlli.ads')
-rw-r--r-- | gcc/ada/a-cidlli.ads | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/gcc/ada/a-cidlli.ads b/gcc/ada/a-cidlli.ads index af57af11ae9..a7e133c303d 100644 --- a/gcc/ada/a-cidlli.ads +++ b/gcc/ada/a-cidlli.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 2004-2012, Free Software Foundation, Inc. -- +-- Copyright (C) 2004-2013, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- @@ -352,4 +352,24 @@ private No_Element : constant Cursor := Cursor'(null, null); + type Iterator is new Limited_Controlled and + List_Iterator_Interfaces.Reversible_Iterator with + record + Container : List_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.Indefinite_Doubly_Linked_Lists; |