diff options
Diffstat (limited to 'gcc/ada/libgnat/a-coboho.ads')
-rw-r--r-- | gcc/ada/libgnat/a-coboho.ads | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ada/libgnat/a-coboho.ads b/gcc/ada/libgnat/a-coboho.ads index 024e6a6..086f194 100644 --- a/gcc/ada/libgnat/a-coboho.ads +++ b/gcc/ada/libgnat/a-coboho.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 2015-2020, Free Software Foundation, Inc. -- +-- Copyright (C) 2015-2021, 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 -- @@ -30,7 +30,7 @@ ------------------------------------------------------------------------------ private with System; -private with Ada.Strings.Text_Output; +private with Ada.Strings.Text_Buffers; generic type Element_Type (<>) is private; @@ -81,6 +81,12 @@ package Ada.Containers.Bounded_Holders is procedure Set (Container : in out Holder; New_Item : Element_Type); + function Constant_Reference + (Container : aliased Holder) return not null access constant Element_Type; + + function Reference + (Container : not null access Holder) return not null access Element_Type; + private -- The implementation uses low-level tricks (Address clauses and unchecked @@ -100,7 +106,7 @@ private -- (default) alignment instead. procedure Put_Image - (S : in out Ada.Strings.Text_Output.Sink'Class; V : Holder); + (S : in out Ada.Strings.Text_Buffers.Root_Buffer_Type'Class; V : Holder); type Element_Access is access all Element_Type; pragma Assert (Element_Access'Size = Standard'Address_Size, |