Debian Codegraph @

gcc/ada/libgnat/a-cihase.ads

raw
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT LIBRARY COMPONENTS --
4 -- --
5 -- ADA.CONTAINERS.INDEFINITE_HASHED_SETS --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 2004-2025, Free Software Foundation, Inc. --
10 -- --
11 -- This specification is derived from the Ada Reference Manual for use with --
12 -- GNAT. The copyright notice above, and the license provisions that follow --
13 -- apply solely to the contents of the part following the private keyword. --
14 -- --
15 -- GNAT is free software; you can redistribute it and/or modify it under --
16 -- terms of the GNU General Public License as published by the Free Soft- --
17 -- ware Foundation; either version 3, or (at your option) any later ver- --
18 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
19 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
20 -- or FITNESS FOR A PARTICULAR PURPOSE. --
21 -- --
22 -- As a special exception under Section 7 of GPL version 3, you are granted --
23 -- additional permissions described in the GCC Runtime Library Exception, --
24 -- version 3.1, as published by the Free Software Foundation. --
25 -- --
26 -- You should have received a copy of the GNU General Public License and --
27 -- a copy of the GCC Runtime Library Exception along with this program; --
28 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
29 -- <http://www.gnu.org/licenses/>. --
30 -- --
31 -- This unit was originally developed by Matthew J Heaney. --
32 ------------------------------------------------------------------------------
33
34 with Ada.Iterator_Interfaces;
35
36 private with Ada.Containers.Hash_Tables;
37 with Ada.Containers.Helpers;
38 private with Ada.Streams;
39 private with Ada.Finalization;
40 private with Ada.Strings.Text_Buffers;
41
42 generic
43 type Element_Type (<>) is private;
44
45 with function Hash (Element : Element_Type) return Hash_Type;
46
47 with function Equivalent_Elements (Left, Right : Element_Type)
48 return Boolean;
49
50 with function "=" (Left, Right : Element_Type) return Boolean is <>;
51
52 package Ada.Containers.Indefinite_Hashed_Sets with
53 SPARK_Mode => Off
54 is
55 pragma Annotate (CodePeer, Skip_Analysis);
56 pragma Preelaborate;
57 pragma Remote_Types;
58
59 type Set is tagged private
60 with Constant_Indexing => Constant_Reference,
61 Default_Iterator => Iterate,
62 Iterator_Element => Element_Type,
63 Aggregate => (Empty => Empty,
64 Add_Unnamed => Include);
65
66 pragma Preelaborable_Initialization (Set);
67
68 type Cursor is private;
69 pragma Preelaborable_Initialization (Cursor);
70
71 Empty_Set : constant Set;
72 -- Set objects declared without an initialization expression are
73 -- initialized to the value Empty_Set.
74
75 function Empty (Capacity : Count_Type := 1000) return Set;
76
77 No_Element : constant Cursor;
78 -- Cursor objects declared without an initialization expression are
79 -- initialized to the value No_Element.
80
81 function Has_Element (Position : Cursor) return Boolean;
82 -- Equivalent to Position /= No_Element
83
84 package Set_Iterator_Interfaces is new
85 Ada.Iterator_Interfaces (Cursor, Has_Element);
86
87 function "=" (Left, Right : Set) return Boolean;
88 -- For each element in Left, set equality attempts to find the equal
89 -- element in Right; if a search fails, then set equality immediately
90 -- returns False. The search works by calling Hash to find the bucket in
91 -- the Right set that corresponds to the Left element. If the bucket is
92 -- non-empty, the search calls the generic formal element equality operator
93 -- to compare the element (in Left) to the element of each node in the
94 -- bucket (in Right); the search terminates when a matching node in the
95 -- bucket is found, or the nodes in the bucket are exhausted. (Note that
96 -- element equality is called here, not Equivalent_Elements. Set equality
97 -- is the only operation in which element equality is used. Compare set
98 -- equality to Equivalent_Sets, which does call Equivalent_Elements.)
99
100 function Equivalent_Sets (Left, Right : Set) return Boolean;
101 -- Similar to set equality, with the difference that the element in Left is
102 -- compared to the elements in Right using the generic formal
103 -- Equivalent_Elements operation instead of element equality.
104
105 function To_Set (New_Item : Element_Type) return Set;
106 -- Constructs a singleton set comprising New_Element. To_Set calls Hash to
107 -- determine the bucket for New_Item.
108
109 function Capacity (Container : Set) return Count_Type;
110 -- Returns the current capacity of the set. Capacity is the maximum length
111 -- before which rehashing in guaranteed not to occur.
112
113 procedure Reserve_Capacity (Container : in out Set; Capacity : Count_Type);
114 -- Adjusts the current capacity, by allocating a new buckets array. If the
115 -- requested capacity is less than the current capacity, then the capacity
116 -- is contracted (to a value not less than the current length). If the
117 -- requested capacity is greater than the current capacity, then the
118 -- capacity is expanded (to a value not less than what is requested). In
119 -- either case, the nodes are rehashed from the old buckets array onto the
120 -- new buckets array (Hash is called once for each existing element in
121 -- order to compute the new index), and then the old buckets array is
122 -- deallocated.
123
124 function Length (Container : Set) return Count_Type;
125 -- Returns the number of items in the set
126
127 function Is_Empty (Container : Set) return Boolean;
128 -- Equivalent to Length (Container) = 0
129
130 procedure Clear (Container : in out Set);
131 -- Removes all of the items from the set
132
133 function Element (Position : Cursor) return Element_Type;
134 -- Returns the element of the node designated by the cursor
135
136 procedure Replace_Element
137 (Container : in out Set;
138 Position : Cursor;
139 New_Item : Element_Type);
140 -- If New_Item is equivalent (as determined by calling Equivalent_Elements)
141 -- to the element of the node designated by Position, then New_Element is
142 -- assigned to that element. Otherwise, it calls Hash to determine the
143 -- bucket for New_Item. If the bucket is not empty, then it calls
144 -- Equivalent_Elements for each node in that bucket to determine whether
145 -- New_Item is equivalent to an element in that bucket. If
146 -- Equivalent_Elements returns True then Program_Error is raised (because
147 -- an element may appear only once in the set); otherwise, New_Item is
148 -- assigned to the node designated by Position, and the node is moved to
149 -- its new bucket.
150
151 procedure Query_Element
152 (Position : Cursor;
153 Process : not null access procedure (Element : Element_Type));
154 -- Calls Process with the element (having only a constant view) of the node
155 -- designated by the cursor.
156
157 type Constant_Reference_Type
158 (Element : not null access constant Element_Type) is private
159 with Implicit_Dereference => Element;
160
161 function Constant_Reference
162 (Container : aliased Set;
163 Position : Cursor) return Constant_Reference_Type;
164 pragma Inline (Constant_Reference);
165
166 procedure Assign (Target : in out Set; Source : Set);
167
168 function Copy (Source : Set; Capacity : Count_Type := 0) return Set;
169
170 procedure Move (Target : in out Set; Source : in out Set);
171 -- Clears Target (if it's not empty), and then moves (not copies) the
172 -- buckets array and nodes from Source to Target.
173
174 procedure Insert
175 (Container : in out Set;
176 New_Item : Element_Type;
177 Position : out Cursor;
178 Inserted : out Boolean);
179 -- Conditionally inserts New_Item into the set. If New_Item is already in
180 -- the set, then Inserted returns False and Position designates the node
181 -- containing the existing element (which is not modified). If New_Item is
182 -- not already in the set, then Inserted returns True and Position
183 -- designates the newly-inserted node containing New_Item. The search for
184 -- an existing element works as follows. Hash is called to determine
185 -- New_Item's bucket; if the bucket is non-empty, then Equivalent_Elements
186 -- is called to compare New_Item to the element of each node in that
187 -- bucket. If the bucket is empty, or there were no equivalent elements in
188 -- the bucket, the search "fails" and the New_Item is inserted in the set
189 -- (and Inserted returns True); otherwise, the search "succeeds" (and
190 -- Inserted returns False).
191
192 procedure Insert (Container : in out Set; New_Item : Element_Type);
193 -- Attempts to insert New_Item into the set, performing the usual insertion
194 -- search (which involves calling both Hash and Equivalent_Elements); if
195 -- the search succeeds (New_Item is equivalent to an element already in the
196 -- set, and so was not inserted), then this operation raises
197 -- Constraint_Error. (This version of Insert is similar to Replace, but
198 -- having the opposite exception behavior. It is intended for use when you
199 -- want to assert that the item is not already in the set.)
200
201 procedure Include (Container : in out Set; New_Item : Element_Type);
202 -- Attempts to insert New_Item into the set. If an element equivalent to
203 -- New_Item is already in the set (the insertion search succeeded, and
204 -- hence New_Item was not inserted), then the value of New_Item is assigned
205 -- to the existing element. (This insertion operation only raises an
206 -- exception if cursor tampering occurs. It is intended for use when you
207 -- want to insert the item in the set, and you don't care whether an
208 -- equivalent element is already present.)
209
210 procedure Replace (Container : in out Set; New_Item : Element_Type);
211 -- Searches for New_Item in the set; if the search fails (because an
212 -- equivalent element was not in the set), then it raises
213 -- Constraint_Error. Otherwise, the existing element is assigned the value
214 -- New_Item. (This is similar to Insert, but with the opposite exception
215 -- behavior. It is intended for use when you want to assert that the item
216 -- is already in the set.)
217
218 procedure Exclude (Container : in out Set; Item : Element_Type);
219 -- Searches for Item in the set, and if found, removes its node from the
220 -- set and then deallocates it. The search works as follows. The operation
221 -- calls Hash to determine the item's bucket; if the bucket is not empty,
222 -- it calls Equivalent_Elements to compare Item to the element of each node
223 -- in the bucket. (This is the deletion analog of Include. It is intended
224 -- for use when you want to remove the item from the set, but don't care
225 -- whether the item is already in the set.)
226
227 procedure Delete (Container : in out Set; Item : Element_Type);
228 -- Searches for Item in the set (which involves calling both Hash and
229 -- Equivalent_Elements). If the search fails, then the operation raises
230 -- Constraint_Error. Otherwise it removes the node from the set and then
231 -- deallocates it. (This is the deletion analog of non-conditional
232 -- Insert. It is intended for use when you want to assert that the item is
233 -- already in the set.)
234
235 procedure Delete (Container : in out Set; Position : in out Cursor);
236 -- Removes the node designated by Position from the set, and then
237 -- deallocates the node. The operation calls Hash to determine the bucket,
238 -- and then compares Position to each node in the bucket until there's a
239 -- match (it does not call Equivalent_Elements).
240
241 procedure Union (Target : in out Set; Source : Set);
242 -- The operation first calls Reserve_Capacity if the current capacity is
243 -- less than the sum of the lengths of Source and Target. It then iterates
244 -- over the Source set, and conditionally inserts each element into Target.
245
246 function Union (Left, Right : Set) return Set;
247 -- The operation first copies the Left set to the result, and then iterates
248 -- over the Right set to conditionally insert each element into the result.
249
250 function "or" (Left, Right : Set) return Set renames Union;
251
252 procedure Intersection (Target : in out Set; Source : Set);
253 -- Iterates over the Target set (calling First and Next), calling Find to
254 -- determine whether the element is in Source. If an equivalent element is
255 -- not found in Source, the element is deleted from Target.
256
257 function Intersection (Left, Right : Set) return Set;
258 -- Iterates over the Left set, calling Find to determine whether the
259 -- element is in Right. If an equivalent element is found, it is inserted
260 -- into the result set.
261
262 function "and" (Left, Right : Set) return Set renames Intersection;
263
264 procedure Difference (Target : in out Set; Source : Set);
265 -- Iterates over the Source (calling First and Next), calling Find to
266 -- determine whether the element is in Target. If an equivalent element is
267 -- found, it is deleted from Target.
268
269 function Difference (Left, Right : Set) return Set;
270 -- Iterates over the Left set, calling Find to determine whether the
271 -- element is in the Right set. If an equivalent element is not found, the
272 -- element is inserted into the result set.
273
274 function "-" (Left, Right : Set) return Set renames Difference;
275
276 procedure Symmetric_Difference (Target : in out Set; Source : Set);
277 -- The operation first calls Reserve_Capacity if the current capacity is
278 -- less than the sum of the lengths of Source and Target. It then iterates
279 -- over the Source set, searching for the element in Target (calling Hash
280 -- and Equivalent_Elements). If an equivalent element is found, it is
281 -- removed from Target; otherwise it is inserted into Target.
282
283 function Symmetric_Difference (Left, Right : Set) return Set;
284 -- The operation first iterates over the Left set. It calls Find to
285 -- determine whether the element is in the Right set. If no equivalent
286 -- element is found, the element from Left is inserted into the result. The
287 -- operation then iterates over the Right set, to determine whether the
288 -- element is in the Left set. If no equivalent element is found, the Right
289 -- element is inserted into the result.
290
291 function "xor" (Left, Right : Set) return Set
292 renames Symmetric_Difference;
293
294 function Overlap (Left, Right : Set) return Boolean;
295 -- Iterates over the Left set (calling First and Next), calling Find to
296 -- determine whether the element is in the Right set. If an equivalent
297 -- element is found, the operation immediately returns True. The operation
298 -- returns False if the iteration over Left terminates without finding any
299 -- equivalent element in Right.
300
301 function Is_Subset (Subset : Set; Of_Set : Set) return Boolean;
302 -- Iterates over Subset (calling First and Next), calling Find to determine
303 -- whether the element is in Of_Set. If no equivalent element is found in
304 -- Of_Set, the operation immediately returns False. The operation returns
305 -- True if the iteration over Subset terminates without finding an element
306 -- not in Of_Set (that is, every element in Subset is equivalent to an
307 -- element in Of_Set).
308
309 function First (Container : Set) return Cursor;
310 -- Returns a cursor that designates the first non-empty bucket, by
311 -- searching from the beginning of the buckets array.
312
313 function Next (Position : Cursor) return Cursor;
314 -- Returns a cursor that designates the node that follows the current one
315 -- designated by Position. If Position designates the last node in its
316 -- bucket, the operation calls Hash to compute the index of this bucket,
317 -- and searches the buckets array for the first non-empty bucket, starting
318 -- from that index; otherwise, it simply follows the link to the next node
319 -- in the same bucket.
320
321 procedure Next (Position : in out Cursor);
322 -- Equivalent to Position := Next (Position)
323
324 function Find (Container : Set; Item : Element_Type) return Cursor;
325 -- Searches for Item in the set. Find calls Hash to determine the item's
326 -- bucket; if the bucket is not empty, it calls Equivalent_Elements to
327 -- compare Item to each element in the bucket. If the search succeeds, Find
328 -- returns a cursor designating the node containing the equivalent element;
329 -- otherwise, it returns No_Element.
330
331 function Contains (Container : Set; Item : Element_Type) return Boolean;
332 -- Equivalent to Find (Container, Item) /= No_Element
333
334 function Equivalent_Elements (Left, Right : Cursor) return Boolean;
335 -- Returns the result of calling Equivalent_Elements with the elements of
336 -- the nodes designated by cursors Left and Right.
337
338 function Equivalent_Elements
339 (Left : Cursor;
340 Right : Element_Type) return Boolean;
341 -- Returns the result of calling Equivalent_Elements with element of the
342 -- node designated by Left and element Right.
343
344 function Equivalent_Elements
345 (Left : Element_Type;
346 Right : Cursor) return Boolean;
347 -- Returns the result of calling Equivalent_Elements with element Left and
348 -- the element of the node designated by Right.
349
350 procedure Iterate
351 (Container : Set;
352 Process : not null access procedure (Position : Cursor));
353 -- Calls Process for each node in the set
354
355 function Iterate (Container : Set)
356 return Set_Iterator_Interfaces.Forward_Iterator'Class;
357
358 -- Ada 2022 features:
359
360 function Has_Element (Container : Set; Position : Cursor) return Boolean;
361
362 function Tampering_With_Cursors_Prohibited (Container : Set) return Boolean;
363
364 function Element (Container : Set; Position : Cursor) return Element_Type;
365
366 procedure Query_Element
367 (Container : Set;
368 Position : Cursor;
369 Process : not null access procedure (Element : Element_Type));
370
371 function Next (Container : Set; Position : Cursor) return Cursor;
372
373 procedure Next (Container : Set; Position : in out Cursor);
374
375 ----------------
376
377 generic
378 type Key_Type (<>) is private;
379
380 with function Key (Element : Element_Type) return Key_Type;
381
382 with function Hash (Key : Key_Type) return Hash_Type;
383
384 with function Equivalent_Keys (Left, Right : Key_Type) return Boolean;
385
386 package Generic_Keys is
387
388 function Key (Position : Cursor) return Key_Type;
389 -- Applies generic formal operation Key to the element of the node
390 -- designated by Position.
391
392 function Key (Container : Set; Position : Cursor) return Key_Type is
393 (Key (Element (Container, Position)));
394
395 function Element (Container : Set; Key : Key_Type) return Element_Type;
396 -- Searches (as per the key-based Find) for the node containing Key, and
397 -- returns the associated element.
398
399 procedure Replace
400 (Container : in out Set;
401 Key : Key_Type;
402 New_Item : Element_Type);
403 -- Searches (as per the key-based Find) for the node containing Key, and
404 -- then replaces the element of that node (as per the element-based
405 -- Replace_Element).
406
407 procedure Exclude (Container : in out Set; Key : Key_Type);
408 -- Searches for Key in the set, and if found, removes its node from the
409 -- set and then deallocates it. The search works by first calling Hash
410 -- (on Key) to determine the bucket; if the bucket is not empty, it
411 -- calls Equivalent_Keys to compare parameter Key to the value of
412 -- generic formal operation Key applied to element of each node in the
413 -- bucket.
414
415 procedure Delete (Container : in out Set; Key : Key_Type);
416 -- Deletes the node containing Key as per Exclude, with the difference
417 -- that Constraint_Error is raised if Key is not found.
418
419 function Find (Container : Set; Key : Key_Type) return Cursor;
420 -- Searches for the node containing Key, and returns a cursor
421 -- designating the node. The search works by first calling Hash (on Key)
422 -- to determine the bucket. If the bucket is not empty, the search
423 -- compares Key to the element of each node in the bucket, and returns
424 -- the matching node. The comparison itself works by applying the
425 -- generic formal Key operation to the element of the node, and then
426 -- calling generic formal operation Equivalent_Keys.
427
428 function Contains (Container : Set; Key : Key_Type) return Boolean;
429 -- Equivalent to Find (Container, Key) /= No_Element
430
431 procedure Update_Element_Preserving_Key
432 (Container : in out Set;
433 Position : Cursor;
434 Process : not null access
435 procedure (Element : in out Element_Type));
436 -- Calls Process with the element of the node designated by Position,
437 -- but with the restriction that the key-value of the element is not
438 -- modified. The operation first makes a copy of the value returned by
439 -- applying generic formal operation Key on the element of the node, and
440 -- then calls Process with the element. The operation verifies that the
441 -- key-part has not been modified by calling generic formal operation
442 -- Equivalent_Keys to compare the saved key-value to the value returned
443 -- by applying generic formal operation Key to the post-Process value of
444 -- element. If the key values compare equal then the operation
445 -- completes. Otherwise, the node is removed from the map and
446 -- Program_Error is raised.
447
448 type Reference_Type (Element : not null access Element_Type) is private
449 with Implicit_Dereference => Element;
450
451 function Reference_Preserving_Key
452 (Container : aliased in out Set;
453 Position : Cursor) return Reference_Type;
454
455 function Constant_Reference
456 (Container : aliased Set;
457 Key : Key_Type) return Constant_Reference_Type;
458
459 function Reference_Preserving_Key
460 (Container : aliased in out Set;
461 Key : Key_Type) return Reference_Type;
462
463 private
464 type Set_Access is access all Set;
465 for Set_Access'Storage_Size use 0;
466
467 package Impl is new Helpers.Generic_Implementation;
468
469 type Reference_Control_Type is
470 new Impl.Reference_Control_Type with
471 record
472 Container : Set_Access;
473 Index : Hash_Type;
474 Old_Pos : Cursor;
475 Old_Hash : Hash_Type;
476 end record;
477
478 overriding procedure Finalize (Control : in out Reference_Control_Type);
479 pragma Inline (Finalize);
480
481 type Reference_Type (Element : not null access Element_Type) is record
482 Control : Reference_Control_Type :=
483 raise Program_Error with "uninitialized reference";
484 -- The RM says, "The default initialization of an object of
485 -- type Constant_Reference_Type or Reference_Type propagates
486 -- Program_Error."
487 end record;
488
489 use Ada.Streams;
490
491 procedure Read
492 (Stream : not null access Root_Stream_Type'Class;
493 Item : out Reference_Type);
494
495 for Reference_Type'Read use Read;
496
497 procedure Write
498 (Stream : not null access Root_Stream_Type'Class;
499 Item : Reference_Type);
500
501 for Reference_Type'Write use Write;
502 end Generic_Keys;
503
504 private
505 pragma Inline (Next);
506
507 type Node_Type;
508 type Node_Access is access Node_Type;
509
510 type Element_Access is access all Element_Type;
511
512 type Node_Type is limited record
513 Element : Element_Access;
514 Next : Node_Access;
515 end record;
516
517 package HT_Types is
518 new Hash_Tables.Generic_Hash_Table_Types (Node_Type, Node_Access);
519
520 type Set is new Ada.Finalization.Controlled with record
521 HT : HT_Types.Hash_Table_Type;
522 end record with Put_Image => Put_Image;
523
524 procedure Put_Image
525 (S : in out Ada.Strings.Text_Buffers.Root_Buffer_Type'Class; V : Set);
526
527 overriding procedure Adjust (Container : in out Set);
528
529 overriding procedure Finalize (Container : in out Set);
530
531 use HT_Types, HT_Types.Implementation;
532 use Ada.Finalization;
533 use Ada.Streams;
534
535 procedure Write
536 (Stream : not null access Root_Stream_Type'Class;
537 Container : Set);
538
539 for Set'Write use Write;
540
541 procedure Read
542 (Stream : not null access Root_Stream_Type'Class;
543 Container : out Set);
544
545 for Set'Read use Read;
546
547 type Set_Access is access all Set;
548 for Set_Access'Storage_Size use 0;
549
550 type Cursor is record
551 Container : Set_Access;
552 Node : Node_Access;
553 end record;
554
555 procedure Write
556 (Stream : not null access Root_Stream_Type'Class;
557 Item : Cursor);
558
559 for Cursor'Write use Write;
560
561 procedure Read
562 (Stream : not null access Root_Stream_Type'Class;
563 Item : out Cursor);
564
565 for Cursor'Read use Read;
566
567 subtype Reference_Control_Type is Implementation.Reference_Control_Type;
568 -- It is necessary to rename this here, so that the compiler can find it
569
570 type Constant_Reference_Type
571 (Element : not null access constant Element_Type) is
572 record
573 Control : Reference_Control_Type :=
574 raise Program_Error with "uninitialized reference";
575 -- The RM says, "The default initialization of an object of
576 -- type Constant_Reference_Type or Reference_Type propagates
577 -- Program_Error."
578 end record;
579
580 procedure Read
581 (Stream : not null access Root_Stream_Type'Class;
582 Item : out Constant_Reference_Type);
583
584 for Constant_Reference_Type'Read use Read;
585
586 procedure Write
587 (Stream : not null access Root_Stream_Type'Class;
588 Item : Constant_Reference_Type);
589
590 for Constant_Reference_Type'Write use Write;
591
592 -- See Ada.Containers.Vectors for documentation on the following
593
594 procedure _Next (Position : in out Cursor) renames Next;
595
596 function Pseudo_Reference
597 (Container : aliased Set'Class) return Reference_Control_Type;
598 pragma Inline (Pseudo_Reference);
599 -- Creates an object of type Reference_Control_Type pointing to the
600 -- container, and increments the Lock. Finalization of this object will
601 -- decrement the Lock.
602
603 function Get_Element_Access
604 (Position : Cursor) return not null Element_Access;
605 -- Returns a pointer to the element designated by Position.
606
607 Empty_Set : constant Set := (Controlled with others => <>);
608
609 No_Element : constant Cursor := (Container => null, Node => null);
610
611 type Iterator is new Limited_Controlled and
612 Set_Iterator_Interfaces.Forward_Iterator with
613 record
614 Container : Set_Access;
615 end record
616 with Disable_Controlled => not T_Check;
617
618 overriding procedure Finalize (Object : in out Iterator);
619
620 overriding function First (Object : Iterator) return Cursor;
621
622 overriding function Next
623 (Object : Iterator;
624 Position : Cursor) return Cursor;
625
626 end Ada.Containers.Indefinite_Hashed_Sets;