summaryrefslogtreecommitdiffhomepage
path: root/dev/LibC++/utility.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-02 19:38:33 +0200
committerGitHub <noreply@github.com>2025-05-02 19:38:33 +0200
commit87979899ce833ca477bb563b84e3698224119dab (patch)
treedf67a0724de4c76ce594222747220c233c3bc7f5 /dev/LibC++/utility.h
parent3afc481dc64a07fe7fcaff9ce7a12a492c3ec8e7 (diff)
parentfb12b9730d78052f5cafbd84fbc9a830a22cec17 (diff)
Merge pull request #4 from nekernel-org/dev
0.0.1
Diffstat (limited to 'dev/LibC++/utility.h')
-rw-r--r--dev/LibC++/utility.h45
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