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
