From 87a30d95dddc0cfcdf77e9d7406c1eea717865ff Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 19 Dec 2025 10:09:39 +0100 Subject: chore: new LibC++ version, updated file structure. Signed-off-by: Amlal El Mahrouss --- include/LibC++/base_alloc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/LibC++/base_alloc.h') diff --git a/include/LibC++/base_alloc.h b/include/LibC++/base_alloc.h index 7ae03df..cd95806 100644 --- a/include/LibC++/base_alloc.h +++ b/include/LibC++/base_alloc.h @@ -11,7 +11,7 @@ namespace std::base_alloc { /// @brief allocate a new class. /// @tparam KindClass the class type to allocate. -template +template inline KindClass* allocate(Args&&... args) { return new KindClass(forward(args)...); } @@ -19,14 +19,14 @@ inline KindClass* allocate(Args&&... args) { /// @brief allocate a new class. /// @note aborts on error. /// @tparam KindClass the class type to allocate. -template +template inline KindClass* allocate_nothrow(Args&&... args) noexcept { return allocate(forward(args)...); } /// @brief free a class. /// @tparam KindClass the class type to allocate. -template +template inline void release(KindClass ptr) { if (!ptr) return; @@ -36,7 +36,7 @@ inline void release(KindClass ptr) { /// @brief destroy and free a class. /// @note aborts on error. /// @tparam KindClass the class type to allocate. -template +template inline void release_nothrow(KindClass ptr) noexcept { release(ptr); } -- cgit v1.2.3