+2019-09-19 Raphael Amiard <amiard@adacore.com>
+
+ * libgnat/a-cbhama.ads, libgnat/a-cbhase.ads,
+ libgnat/a-chtgop.ads (Clear): Refine comments
+
2019-09-19 Eric Botcazou <ebotcazou@adacore.com>
* sem_ch12.adb (Restore_Private_Views): Comment out new code
-- Equivalent to Length (Container) = 0
procedure Clear (Container : in out Map);
- -- Removes all of the items from the map
+ -- Removes all of the items from the map. This will deallocate all memory
+ -- associated with this map.
function Key (Position : Cursor) return Key_Type;
-- Returns the key of the node designated by the cursor
-- Equivalent to Length (Container) = 0
procedure Clear (Container : in out Set);
- -- Removes all of the items from the set
+ -- Removes all of the items from the set. This will deallocate all memory
+ -- associated with this set.
function Element (Position : Cursor) return Element_Type;
-- Returns the element of the node designated by the cursor
procedure Clear (HT : in out Hash_Table_Type);
-- Deallocates each node in hash table HT. (Note that it only deallocates
- -- the nodes, not the buckets array.) Program_Error is raised if the hash
- -- table is busy.
+ -- the nodes, not the buckets array. Also note that for bounded containers,
+ -- the buckets array is not dynamically allocated). Program_Error is raised
+ -- if the hash table is busy.
procedure Move (Target, Source : in out Hash_Table_Type);
-- Moves (not copies) the buckets array and nodes from Source to