////////////////////////////////////////////////////////////////////////////// // // (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 #include #include "void_allocator_test.hpp" int main() { using namespace boost::container; using boost::container::dtl::is_same; typedef basic_string, pmr::polymorphic_allocator > string_t; typedef basic_string, pmr::polymorphic_allocator > wstring_t; BOOST_CONTAINER_STATIC_ASSERT(( is_same::value )); BOOST_CONTAINER_STATIC_ASSERT(( is_same::type>::value )); BOOST_CONTAINER_STATIC_ASSERT(( is_same::value )); BOOST_CONTAINER_STATIC_ASSERT(( is_same::type>::value )); #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) BOOST_CONTAINER_STATIC_ASSERT(( is_same::value )); BOOST_CONTAINER_STATIC_ASSERT(( is_same::value )); #endif //////////////////////////////////// // Void value_type allocator //////////////////////////////////// { typedef basic_string, pmr::polymorphic_allocator > voidalloc_cont_t; if(!test::test_void_allocator < voidalloc_cont_t , pmr::polymorphic_allocator >()) { return 1; } } return 0; }