blob: 77ffb51a3306e21110b8f7d52b097d8eb6bdb83b [file] [log] [blame]
Eric Fiselier257fd692016-05-07 01:04:55 +00001//===----------------------------------------------------------------------===//
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
22namespace ex = std::experimental::pmr;
23
24int 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}