summaryrefslogtreecommitdiff
path: root/boost/hof/detail/move.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/hof/detail/move.hpp')
-rw-r--r--boost/hof/detail/move.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/boost/hof/detail/move.hpp b/boost/hof/detail/move.hpp
new file mode 100644
index 0000000000..bdbf73ddc7
--- /dev/null
+++ b/boost/hof/detail/move.hpp
@@ -0,0 +1,24 @@
+/*=============================================================================
+ Copyright (c) 2014 Paul Fultz II
+ move.h
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+==============================================================================*/
+
+#ifndef BOOST_HOF_GUARD_MOVE_H
+#define BOOST_HOF_GUARD_MOVE_H
+
+#include <utility>
+
+namespace boost { namespace hof {
+
+template<typename T>
+constexpr typename std::remove_reference<T>::type&&
+move(T&& x) noexcept
+{
+ return static_cast<typename std::remove_reference<T>::type&&>(x);
+}
+
+}} // namespace boost::hof
+
+#endif