Ada Reference ManualLegal Information
Contents   Index   References   Search   Previous   Next 

A.18.1 The Package Containers

1/2
The package Containers is the root of the containers subsystem. 

Static Semantics

2/2
The library package Containers has the following declaration: 
3/2
package Ada.Containers is
   pragma Pure(Containers);
4/2
   type Hash_Type is mod implementation-defined;
5/2
   type Count_Type is range 0 .. implementation-defined;
6/2
end Ada.Containers;
7/2
Hash_Type represents the range of the result of a hash function. Count_Type represents the (potential or actual) number of elements of a container. 

Implementation Advice

8/2
Hash_Type'Modulus should be at least 2**32. Count_Type'Last should be at least 2**31–1. 

Contents   Index   References   Search   Previous   Next 
Ada-Europe Sponsored by Ada-Europe