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
