1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // UNSUPPORTED: c++03 10 11 // <experimental/memory_resource> 12 13 // template <class T> class polymorphic_allocator 14 15 // polymorphic_allocator operator=(polymorphic_allocator const &) = delete 16 17 #include <experimental/memory_resource> 18 #include <type_traits> 19 #include <cassert> 20 21 #include "test_macros.h" 22 23 namespace ex = std::experimental::pmr; 24 main(int,char **)25int main(int, char**) 26 { 27 typedef ex::polymorphic_allocator<void> T; 28 static_assert(!std::is_copy_assignable<T>::value, ""); 29 static_assert(!std::is_move_assignable<T>::value, ""); 30 31 return 0; 32 } 33