summaryrefslogtreecommitdiff
path: root/boost/hof/detail/unwrap.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/hof/detail/unwrap.hpp')
-rw-r--r--boost/hof/detail/unwrap.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/boost/hof/detail/unwrap.hpp b/boost/hof/detail/unwrap.hpp
new file mode 100644
index 0000000000..c9361d891e
--- /dev/null
+++ b/boost/hof/detail/unwrap.hpp
@@ -0,0 +1,29 @@
+/*=============================================================================
+ Copyright (c) 2014 Paul Fultz II
+ unwrap.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_UNWRAP_H
+#define BOOST_HOF_GUARD_UNWRAP_H
+
+#include <type_traits>
+#include <functional>
+
+namespace boost { namespace hof { namespace detail {
+
+template <class T>
+struct unwrap_reference
+{
+ typedef T type;
+};
+template <class T>
+struct unwrap_reference<std::reference_wrapper<T>>
+{
+ typedef T& type;
+};
+
+}}} // namespace boost::hof
+
+#endif