summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/container/test/pmr_set_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/container/test/pmr_set_test.cpp')
-rw-r--r--src/boost/libs/container/test/pmr_set_test.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/boost/libs/container/test/pmr_set_test.cpp b/src/boost/libs/container/test/pmr_set_test.cpp
new file mode 100644
index 00000000..3093fd43
--- /dev/null
+++ b/src/boost/libs/container/test/pmr_set_test.cpp
@@ -0,0 +1,26 @@
+//////////////////////////////////////////////////////////////////////////////
+//
+// (C) Copyright Ion Gaztanaga 2015-2015. 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)
+//
+// See http://www.boost.org/libs/container for documentation.
+//
+//////////////////////////////////////////////////////////////////////////////
+
+#include <boost/container/pmr/set.hpp>
+#include <boost/static_assert.hpp>
+#include <boost/container/detail/type_traits.hpp>
+
+int main()
+{
+ using namespace boost::container;
+ using boost::container::dtl::is_same;
+
+ typedef set<int, std::less<int>, pmr::polymorphic_allocator<int> > intcontainer_t;
+ BOOST_STATIC_ASSERT(( is_same<intcontainer_t, pmr::set_of<int>::type >::value ));
+ #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
+ BOOST_STATIC_ASSERT(( is_same<intcontainer_t, pmr::set<int> >::value ));
+ #endif
+ return 0;
+}