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;
5.1/3
   Capacity_Error : exception;
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. 
7.1/3
 Capacity_Error is raised when the capacity of a container is exceeded.

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 Ada 2005 and 2012 Editions sponsored in part by Ada-Europe