diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-11 08:28:21 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-11 08:28:21 +0000 |
commit | 84d429b9a24117fcd1ad6b88ae2658cc8fa5f8ac (patch) | |
tree | fb62b90dc09045605d9426eb9febca89032fd1b2 /gcc/ada/a-coorse.ads | |
parent | f22b491886dbe1718cc7076fcce41f157ac735d9 (diff) | |
download | gcc-84d429b9a24117fcd1ad6b88ae2658cc8fa5f8ac.tar.gz |
2012-01-11 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 183090 using svnmerge
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@183091 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-coorse.ads')
-rw-r--r-- | gcc/ada/a-coorse.ads | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/gcc/ada/a-coorse.ads b/gcc/ada/a-coorse.ads index 39f69f5eff0..cf28a7ccd1c 100644 --- a/gcc/ada/a-coorse.ads +++ b/gcc/ada/a-coorse.ads @@ -68,28 +68,6 @@ package Ada.Containers.Ordered_Sets is package Set_Iterator_Interfaces is new Ada.Iterator_Interfaces (Cursor, Has_Element); - type Constant_Reference_Type - (Element : not null access constant Element_Type) is - private - with - Implicit_Dereference => Element; - - procedure Write - (Stream : not null access Root_Stream_Type'Class; - Item : Constant_Reference_Type); - - for Constant_Reference_Type'Write use Write; - - function Constant_Reference - (Container : Set; Position : Cursor) - return Constant_Reference_Type; - - procedure Read - (Stream : not null access Root_Stream_Type'Class; - Item : out Constant_Reference_Type); - - for Constant_Reference_Type'Read use Read; - function "=" (Left, Right : Set) return Boolean; function Equivalent_Sets (Left, Right : Set) return Boolean; @@ -113,6 +91,28 @@ package Ada.Containers.Ordered_Sets is (Position : Cursor; Process : not null access procedure (Element : Element_Type)); + type Constant_Reference_Type + (Element : not null access constant Element_Type) is + private + with + Implicit_Dereference => Element; + + procedure Write + (Stream : not null access Root_Stream_Type'Class; + Item : Constant_Reference_Type); + + for Constant_Reference_Type'Write use Write; + + function Constant_Reference + (Container : aliased Set; + Position : Cursor) return Constant_Reference_Type; + + procedure Read + (Stream : not null access Root_Stream_Type'Class; + Item : out Constant_Reference_Type); + + for Constant_Reference_Type'Read use Read; + procedure Assign (Target : in out Set; Source : Set); function Copy (Source : Set) return Set; @@ -278,6 +278,10 @@ package Ada.Containers.Ordered_Sets is function Reference_Preserving_Key (Container : aliased in out Set; + Position : Cursor) return Reference_Type; + + function Constant_Reference + (Container : aliased Set; Key : Key_Type) return Constant_Reference_Type; function Reference_Preserving_Key |