blob: a0a364e8566ecf9e6670592263068dc881b856a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* -------------------------------------------
\
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);
}
/// @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
|