Eric Fiselier | 257fd69 | 2016-05-07 01:04:55 +0000 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 6 | // Source Licenses. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | // UNSUPPORTED: c++98, c++03 |
| 11 | |
| 12 | // <experimental/memory_resource> |
| 13 | |
| 14 | // template <class T> class polymorphic_allocator |
| 15 | |
| 16 | // polymorphic_allocator operator=(polymorphic_allocator const &) = delete |
| 17 | |
| 18 | #include <experimental/memory_resource> |
| 19 | #include <type_traits> |
| 20 | #include <cassert> |
| 21 | |
| 22 | namespace ex = std::experimental::pmr; |
| 23 | |
| 24 | int main() |
| 25 | { |
| 26 | typedef ex::polymorphic_allocator<void> T; |
| 27 | static_assert(std::is_copy_assignable<T>::value, ""); |
| 28 | static_assert(std::is_move_assignable<T>::value, ""); |
| 29 | } |