From 693aba77f3e31b0ddfe4d3e51f47fd3441c45f92 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 18 Mar 2026 22:05:37 +0100 Subject: [CHORE] Rework the Nectar Core Libraries as NCSL (Nectar Core Support Libraries). Signed-off-by: Amlal El Mahrouss --- include/CoreRuntimeKit/C++/utility.hpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 include/CoreRuntimeKit/C++/utility.hpp (limited to 'include/CoreRuntimeKit/C++/utility.hpp') diff --git a/include/CoreRuntimeKit/C++/utility.hpp b/include/CoreRuntimeKit/C++/utility.hpp new file mode 100644 index 0000000..a427c44 --- /dev/null +++ b/include/CoreRuntimeKit/C++/utility.hpp @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org) +// Licensed under the Apache License, Version 2.0 (see LICENSE file) +// Official repository: https://github.com/ne-foss-org/nectar + +#ifndef LIBCXX_UTILITY_H +#define LIBCXX_UTILITY_H + +namespace std { +/// @brief Forward object. +/// @tparam Args the object type. +/// @param arg the object. +/// @return object's rvalue +template +inline auto forward(Args& arg) -> Args&& { + return static_cast(arg); +} + +/// @brief Move object. +/// @tparam Args the object type. +/// @param arg the object. +/// @return object's rvalue +template +inline auto move(Args&& arg) -> Args&& { + return static_cast(arg); +} +} // namespace std + +#endif // LIBCXX_UTILITY_H -- cgit v1.2.3