1//////////////////////////////////////////////////////////////////////////////
2//
3// (C) Copyright Ion Gaztanaga 2015-2015. Distributed under the Boost
4// Software License, Version 1.0. (See accompanying file
5// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6//
7// See http://www.boost.org/libs/container for documentation.
8//
9//////////////////////////////////////////////////////////////////////////////
10
11#include <boost/container/pmr/string.hpp>
12#include <boost/container/detail/type_traits.hpp>
13
14int main()
15{
16 using namespace boost::container;
17 using boost::container::dtl::is_same;
18
19 typedef basic_string<char, std::char_traits<char>, pmr::polymorphic_allocator<char> > string_t;
20 typedef basic_string<wchar_t, std::char_traits<wchar_t>, pmr::polymorphic_allocator<wchar_t> > wstring_t;
21 BOOST_CONTAINER_STATIC_ASSERT(( is_same<string_t, pmr::string>::value ));
22 BOOST_CONTAINER_STATIC_ASSERT(( is_same<string_t, pmr::basic_string_of<char>::type>::value ));
23 BOOST_CONTAINER_STATIC_ASSERT(( is_same<wstring_t, pmr::wstring>::value ));
24 BOOST_CONTAINER_STATIC_ASSERT(( is_same<wstring_t, pmr::basic_string_of<wchar_t>::type>::value ));
25 #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
26 BOOST_CONTAINER_STATIC_ASSERT(( is_same<string_t, pmr::string >::value ));
27 BOOST_CONTAINER_STATIC_ASSERT(( is_same<wstring_t, pmr::wstring >::value ));
28 #endif
29 return 0;
30}
31

source code of boost/libs/container/test/pmr_string_test.cpp