Ada 编程/库/Ada.Containers.Indefinite_Holders
外观
此语言特性在 Ada 2012 中引入。
Ada.Containers.Indefinite_Holders 是 预定义语言环境 自 Ada 2012 以来的一部分。
-- 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;
外部示例
[编辑源代码]- 在以下位置搜索
Ada.Containers.Indefinite_Holders的示例:Rosetta 代码,GitHub (gist),任何 Alire 包 或 此华夏公益教科书。 - 在以下位置搜索与
Ada.Containers.Indefinite_Holders相关的帖子:Stack Overflow,comp.lang.ada 或 任何与 Ada 相关的页面。
FSF GNAT
- 规范:a-coinho.ads
- 主体:a-coinho.adb
drake
