Mercurial > hg > CbC > CbC_gcc
comparison gcc/ada/libgnat/a-chtgop.ads @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
4 -- -- | 4 -- -- |
5 -- ADA.CONTAINERS.HASH_TABLES.GENERIC_OPERATIONS -- | 5 -- ADA.CONTAINERS.HASH_TABLES.GENERIC_OPERATIONS -- |
6 -- -- | 6 -- -- |
7 -- S p e c -- | 7 -- S p e c -- |
8 -- -- | 8 -- -- |
9 -- Copyright (C) 2004-2018, Free Software Foundation, Inc. -- | 9 -- Copyright (C) 2004-2019, Free Software Foundation, Inc. -- |
10 -- -- | 10 -- -- |
11 -- GNAT is free software; you can redistribute it and/or modify it under -- | 11 -- GNAT is free software; you can redistribute it and/or modify it under -- |
12 -- terms of the GNU General Public License as published by the Free Soft- -- | 12 -- terms of the GNU General Public License as published by the Free Soft- -- |
13 -- ware Foundation; either version 3, or (at your option) any later ver- -- | 13 -- ware Foundation; either version 3, or (at your option) any later ver- -- |
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- | 14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- |
105 -- immediately and returns False. Otherwise if Find returns True for every | 105 -- immediately and returns False. Otherwise if Find returns True for every |
106 -- node then Generic_Equal returns True. | 106 -- node then Generic_Equal returns True. |
107 | 107 |
108 procedure Clear (HT : in out Hash_Table_Type); | 108 procedure Clear (HT : in out Hash_Table_Type); |
109 -- Deallocates each node in hash table HT. (Note that it only deallocates | 109 -- Deallocates each node in hash table HT. (Note that it only deallocates |
110 -- the nodes, not the buckets array.) Program_Error is raised if the hash | 110 -- the nodes, not the buckets array. Also note that for bounded containers, |
111 -- table is busy. | 111 -- the buckets array is not dynamically allocated). Program_Error is raised |
112 -- if the hash table is busy. | |
112 | 113 |
113 procedure Move (Target, Source : in out Hash_Table_Type); | 114 procedure Move (Target, Source : in out Hash_Table_Type); |
114 -- Moves (not copies) the buckets array and nodes from Source to | 115 -- Moves (not copies) the buckets array and nodes from Source to |
115 -- Target. Program_Error is raised if Source is busy. The Target is first | 116 -- Target. Program_Error is raised if Source is busy. The Target is first |
116 -- cleared to deallocate its nodes (implying that Program_Error is also | 117 -- cleared to deallocate its nodes (implying that Program_Error is also |