diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-02 09:50:34 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-02 09:50:34 +0000 |
commit | 6b28df7146ad146482b7bd589dfaa8e1302e7c24 (patch) | |
tree | 37ae65204ed46299ee18afc572349f390a7fecdd /gcc/ada/a-cforma.ads | |
parent | 0ec31ca33970cbf01403935b579c52ae2e56d1a1 (diff) | |
download | gcc-6b28df7146ad146482b7bd589dfaa8e1302e7c24.tar.gz |
2011-08-02 Robert Dewar <dewar@adacore.com>
* a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
a-cforse.ads: Remove unneeded with of Ada.Containers
Remove commented out pragma Inline's
Move specifications of new subprograms to the actual specs
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177114 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-cforma.ads')
-rw-r--r-- | gcc/ada/a-cforma.ads | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/gcc/ada/a-cforma.ads b/gcc/ada/a-cforma.ads index 261a29e68b3..088cf69917f 100644 --- a/gcc/ada/a-cforma.ads +++ b/gcc/ada/a-cforma.ads @@ -51,21 +51,10 @@ -- function Left (Container : Map; Position : Cursor) return Map; -- function Right (Container : Map; Position : Cursor) return Map; --- Strict_Equal returns True if the containers are physically equal, --- meaning that they are structurally equal (function "=" returns True) --- and that they have the same set of cursors. Overlap returns True if --- the containers have common keys. - --- Left returns a container containing all elements preceding Position --- (excluded) in Container. Right returns a container containing all --- elements following Position (included) in Container. These two new --- functions are useful to express invariant properties in loops which --- iterate over containers. Left returns the part of the container already --- scanned and Right the part not scanned yet. +-- See detailed specifications for these subprograms private with Ada.Containers.Red_Black_Trees; private with Ada.Streams; -with Ada.Containers; generic type Key_Type is private; @@ -205,13 +194,21 @@ package Ada.Containers.Formal_Ordered_Maps is procedure (Container : Map; Position : Cursor)); function Strict_Equal (Left, Right : Map) return Boolean; + -- Strict_Equal returns True if the containers are physically equal, i.e. + -- they are structurally equal (function "=" returns True) and that they + -- have the same set of cursors. - function Left (Container : Map; Position : Cursor) return Map; - + function Left (Container : Map; Position : Cursor) return Map; function Right (Container : Map; Position : Cursor) return Map; + -- Left returns a container containing all elements preceding Position + -- (excluded) in Container. Right returns a container containing all + -- elements following Position (included) in Container. These two new + -- functions can be used to express invariant properties in loops which + -- iterate over containers. Left returns the part of the container already + -- scanned and Right the part not scanned yet. function Overlap (Left, Right : Map) return Boolean; - + -- Overlap returns True if the containers have common keys private pragma Inline (Next); |