Ada 程式設計/庫/System.Storage_Pools
外觀
此語言功能從 Ada 95 開始提供。
System.Storage_Pools 是 預定義語言環境 的一個單元,自 Ada 95 開始提供。
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- 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 -- -------------------------------------------------------------------------withAda.Finalization;withSystem.Storage_Elements;packageSystem.Storage_PoolsispragmaPreelaborate (System.Storage_Pools);typeRoot_Storage_PoolisabstractnewAda.Finalization.Limited_Controlledwithprivate;pragmaPreelaborable_Initialization (Root_Storage_Pool);procedureAllocate (Pool :inoutRoot_Storage_Pool; Storage_Address :outAddress; Size_In_Storage_Elements :inStorage_Elements.Storage_Count; Alignment :inStorage_Elements.Storage_Count)isabstract;procedureDeallocate (Pool :inoutRoot_Storage_Pool; Storage_Address :inAddress; Size_In_Storage_Elements :inStorage_Elements.Storage_Count; Alignment :inStorage_Elements.Storage_Count)isabstract;functionStorage_Size (Pool : Root_Storage_Pool)returnStorage_Elements.Storage_Countisabstract;privatepragmaImport (Ada, Root_Storage_Pool);endSystem.Storage_Pools;
外部示例
[編輯原始碼]- 在以下網站搜尋 示例:Rosetta Code,GitHub (gists),任何 Alire 包 或 本華夏公益教科書。
- 在以下網站搜尋 帖子:Stack Overflow,comp.lang.ada 或 任何 Ada 相關頁面。
FSF GNAT
- 規範: s-stopoo.ads
- 主體: s-stopoo.adb
drake
- 規範: s-stopoo.ads
- 主體: s-stopoo.adb
