Ada Programming/Libraries/Ada.Containers.Indefinite_Holders
This language feature has been introduced in Ada 2012.
Ada.Containers.Indefinite_Holders is a unit of the Predefined Language Environment since Ada 2012.
Specification
-- Standard Ada library specification -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. -- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaReferenceManual -- -------------------------------------------------------------------------generictypeElement_Type (<>)isprivate;withfunction"=" (Left, Right : Element_Type)returnBooleanis<>;packageAda.Containers.Indefinite_HoldersispragmaPreelaborate(Indefinite_Holders);pragmaRemote_Types(Indefinite_Holders);typeHolderistaggedprivate;pragmaPreelaborable_Initialization (Holder); Empty_Holder :constantHolder;function"=" (Left, Right : Holder)returnBoolean;functionTo_Holder (New_Item : Element_Type)returnHolder;functionIs_Empty (Container : Holder)returnBoolean;procedureClear (Container :inoutHolder);functionElement (Container : Holder)returnElement_Type;procedureReplace_Element (Container :inoutHolder; New_Item :inElement_Type);procedureQuery_Element (Container :inHolder; Process :notnullaccessprocedure(Element :inElement_Type));procedureUpdate_Element (Container :inoutHolder; Process :notnullaccessprocedure(Element :inoutElement_Type));typeConstant_Reference_Type (Element :notnullaccessconstantElement_Type)isprivatewithImplicit_Dereference => Element;typeReference_Type (Element :notnullaccessElement_Type)isprivatewithImplicit_Dereference => Element;functionConstant_Reference (Container :aliasedinHolder)returnConstant_Reference_Type;functionReference (Container :aliasedinoutHolder)returnReference_Type;procedureAssign (Target :inoutHolder; Source :inHolder);functionCopy (Source : Holder)returnHolder;procedureMove (Target :inoutHolder; Source :inoutHolder);private-- not specified by the languageendAda.Containers.Indefinite_Holders;
See also
Wikibook
External examples
- Search for examples of
Ada.Containers.Indefinite_Holdersin: Rosetta Code, GitHub (gists), any Alire crate or this Wikibook. - Search for posts related to
Ada.Containers.Indefinite_Holdersin: Stack Overflow, comp.lang.ada or any Ada related page.
Ada Reference Manual
Ada 2012
Open-Source Implementations
FSF GNAT
- Specification: a-coinho.ads
- Body: a-coinho.adb
drake
- Specification: containers/a-coinho.ads
- Body: containers/a-coinho.adb