| 6 | static_assert(requires { typename Array<std::unique_ptr<int>>; }); |
| 7 | |
| 8 | int main() |
| 9 | { |
| 10 | Array<std::unique_ptr<int>> tenSmartPointers(10); |
| 11 | Array<std::unique_ptr<int>> target; |
| 12 | // target = tenSmartPointers; /* Constraint not satisfied: copyable<unique_ptr> */ |
| 13 | target = std::move(tenSmartPointers); |
| 14 | target.push_back(std::make_unique<int>(123)); |
| 15 | } |