From 20042235d1f53ae428aa154e64afdbae5d8d91ad Mon Sep 17 00:00:00 2001 From: Amlal Date: Fri, 25 Apr 2025 13:14:01 +0200 Subject: meta: update .clang-format, format codebase. Signed-off-by: Amlal --- dev/LibC++/utility.h | 45 +++++++++++++++++++++------------------------ 1 file changed, 21 insertions(+), 24 deletions(-) (limited to 'dev/LibC++/utility.h') diff --git a/dev/LibC++/utility.h b/dev/LibC++/utility.h index 1b1b932..4f1d2d7 100644 --- a/dev/LibC++/utility.h +++ b/dev/LibC++/utility.h @@ -1,33 +1,30 @@ /* ------------------------------------------- - \ + \ Copyright (C) 2024-2025 Amlal El Mahrouss, all rights reserved. \ - \ + \ ------------------------------------------- */ #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 Args&& forward(Args& arg) - { - return static_cast(arg); - } +namespace std { +/// @brief Forward object. +/// @tparam Args the object type. +/// @param arg the object. +/// @return object's rvalue +template +inline Args&& forward(Args& arg) { + return static_cast(arg); +} - /// @brief Move object. - /// @tparam Args the object type. - /// @param arg the object. - /// @return object's rvalue - template - inline Args&& move(Args&& arg) - { - return static_cast(arg); - } -} // namespace std +/// @brief Move object. +/// @tparam Args the object type. +/// @param arg the object. +/// @return object's rvalue +template +inline Args&& move(Args&& arg) { + return static_cast(arg); +} +} // namespace std -#endif // LIBCXX_UTILITY_H +#endif // LIBCXX_UTILITY_H -- cgit v1.2.3