diff options
Diffstat (limited to 'dev/LibC++/utility.h')
| -rw-r--r-- | dev/LibC++/utility.h | 45 |
1 files changed, 21 insertions, 24 deletions
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 <typename Args> - inline Args&& forward(Args& arg) - { - return static_cast<Args&&>(arg); - } +namespace std { +/// @brief Forward object. +/// @tparam Args the object type. +/// @param arg the object. +/// @return object's rvalue +template <typename Args> +inline Args&& forward(Args& arg) { + return static_cast<Args&&>(arg); +} - /// @brief Move object. - /// @tparam Args the object type. - /// @param arg the object. - /// @return object's rvalue - template <typename Args> - inline Args&& move(Args&& arg) - { - return static_cast<Args&&>(arg); - } -} // namespace std +/// @brief Move object. +/// @tparam Args the object type. +/// @param arg the object. +/// @return object's rvalue +template <typename Args> +inline Args&& move(Args&& arg) { + return static_cast<Args&&>(arg); +} +} // namespace std -#endif // LIBCXX_UTILITY_H +#endif // LIBCXX_UTILITY_H |
