Overview
Umbrella header that includes Castle's low-level memory helpers in one place. Use it when a translation unit needs several of these components together and the extra include breadth is acceptable.
Dependencies
addressofalignmentconstructdestroylifetimenewobjectsoo_bufferstatic_storagestorage
Public API
This header adds no new declarations. It re-exports the public APIs from:
castle/memory/addressof.hppcastle/memory/alignment.hppcastle/memory/construct.hppcastle/memory/destroy.hppcastle/memory/lifetime.hppcastle/memory/new.hppcastle/memory/object.hppcastle/memory/soo_buffer.hppcastle/memory/static_storage.hppcastle/memory/storage.hpp
Usage example
See samples/sample_memory.cpp.
#include "castle/memory/memory.hpp"Constraints & notes
- Allocation behavior, alignment rules, and lifetime preconditions come from the included component headers.
- This is a convenience include only; choose narrower headers when compile-time dependency size matters.