]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/hana/core/tag_of.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / hana / core / tag_of.hpp
index 87406521cd89f82cd248eeea1304aa79402dc350..656e246702b353efc1075e38921e80abb1f17601 100644 (file)
@@ -15,6 +15,8 @@ Distributed under the Boost Software License, Version 1.0.
 #include <boost/hana/config.hpp>
 #include <boost/hana/core/when.hpp>
 
+#include <type_traits>
+
 
 BOOST_HANA_NAMESPACE_BEGIN
     //! @cond
@@ -44,6 +46,14 @@ BOOST_HANA_NAMESPACE_BEGIN
     template <typename T> struct tag_of<T const volatile> : tag_of<T> { };
     template <typename T> struct tag_of<T&> : tag_of<T> { };
     template <typename T> struct tag_of<T&&> : tag_of<T> { };
+
+    namespace detail {
+        template <typename T>
+        struct has_idempotent_tag
+            : std::is_same<hana::tag_of_t<T>,
+                           std::remove_const_t<std::remove_reference_t<T>>>
+        { };
+    }
 BOOST_HANA_NAMESPACE_END
 
 #endif // !BOOST_HANA_CORE_TAG_OF_HPP