Walter Brown sent a list of tests which needed 'additional includes' to match what was in the standard. Added these includes to the tests. No changes to the library or test results.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@225541 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aa66357f48
commit
6b913d7c52
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// iterator erase(const_iterator position);
|
// iterator erase(const_iterator position);
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <iterator>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "min_allocator.h"
|
#include "min_allocator.h"
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
// iterator erase(const_iterator first, const_iterator last);
|
// iterator erase(const_iterator first, const_iterator last);
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <iterator>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "min_allocator.h"
|
#include "min_allocator.h"
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
// void swap(vector<T,Alloc>& x, vector<T,Alloc>& y);
|
// void swap(vector<T,Alloc>& x, vector<T,Alloc>& y);
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <iterator>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include "test_allocator.h"
|
#include "test_allocator.h"
|
||||||
#include "min_allocator.h"
|
#include "min_allocator.h"
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
// test <stdint.h>
|
// test <stdint.h>
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <cstddef>
|
||||||
#include <csignal>
|
#include <csignal>
|
||||||
#include <cwctype>
|
#include <cwctype>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
// test <cstdint>
|
// test <cstdint>
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <cwchar>
|
||||||
#include <csignal>
|
#include <csignal>
|
||||||
#include <cwctype>
|
#include <cwctype>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
// assign(basic_string<charT,traits>&& str);
|
// assign(basic_string<charT,traits>&& str);
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "min_allocator.h"
|
#include "min_allocator.h"
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
// operator+(charT lhs, basic_string<charT,traits,Allocator>&& rhs);
|
// operator+(charT lhs, basic_string<charT,traits,Allocator>&& rhs);
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "min_allocator.h"
|
#include "min_allocator.h"
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
// operator+(const charT* lhs, basic_string<charT,traits,Allocator>&& rhs);
|
// operator+(const charT* lhs, basic_string<charT,traits,Allocator>&& rhs);
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "min_allocator.h"
|
#include "min_allocator.h"
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
// operator+(basic_string<charT,traits,Allocator>&& lhs, charT rhs);
|
// operator+(basic_string<charT,traits,Allocator>&& lhs, charT rhs);
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "min_allocator.h"
|
#include "min_allocator.h"
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
// operator+(basic_string<charT,traits,Allocator>&& lhs, const charT* rhs);
|
// operator+(basic_string<charT,traits,Allocator>&& lhs, const charT* rhs);
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "min_allocator.h"
|
#include "min_allocator.h"
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
// const basic_string<charT,traits,Allocator>&& rhs);
|
// const basic_string<charT,traits,Allocator>&& rhs);
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "min_allocator.h"
|
#include "min_allocator.h"
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
#include <utility>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <new>
|
#include <new>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include <scoped_allocator>
|
#include <scoped_allocator>
|
||||||
|
#include <memory>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#if __cplusplus >= 201103L
|
#if __cplusplus >= 201103L
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
#define DELETER_H
|
#define DELETER_H
|
||||||
|
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr move assignment
|
// Test unique_ptr move assignment
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// Can't copy from lvalue
|
// Can't copy from lvalue
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
// deleter is a reference, not even that.
|
// deleter is a reference, not even that.
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../deleter.h"
|
#include "../deleter.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr move assignment
|
// Test unique_ptr move assignment
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// Can't copy from const lvalue
|
// Can't copy from const lvalue
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr move assignment
|
// Test unique_ptr move assignment
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// Can't copy from lvalue
|
// Can't copy from lvalue
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr move ctor
|
// Test unique_ptr move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test move ctor. Can't copy from const lvalue
|
// test move ctor. Can't copy from const lvalue
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move assignment
|
// Test unique_ptr converting move assignment
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// Can't assign from lvalue
|
// Can't assign from lvalue
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
// Can't assign from lvalue
|
// Can't assign from lvalue
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../deleter.h"
|
#include "../deleter.h"
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
// Can't assign from lvalue
|
// Can't assign from lvalue
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../deleter.h"
|
#include "../deleter.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move assignment
|
// Test unique_ptr converting move assignment
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// Can't assign from const lvalue
|
// Can't assign from const lvalue
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
// Can't assign from const lvalue
|
// Can't assign from const lvalue
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../deleter.h"
|
#include "../deleter.h"
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
// Can't assign from const lvalue
|
// Can't assign from const lvalue
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../deleter.h"
|
#include "../deleter.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move assignment
|
// Test unique_ptr converting move assignment
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
struct A
|
struct A
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move assignment
|
// Test unique_ptr converting move assignment
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../deleter.h"
|
#include "../deleter.h"
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
// test converting move assignment with reference deleters
|
// test converting move assignment with reference deleters
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../deleter.h"
|
#include "../deleter.h"
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
// deleter is a reference, not even that.
|
// deleter is a reference, not even that.
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../../deleter.h"
|
#include "../../deleter.h"
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
// deleter is a reference, not even that.
|
// deleter is a reference, not even that.
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../../deleter.h"
|
#include "../../deleter.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move assignment
|
// Test unique_ptr converting move assignment
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// Can't assign from lvalue
|
// Can't assign from lvalue
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move assignment
|
// Test unique_ptr converting move assignment
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
struct A
|
struct A
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move assignment
|
// Test unique_ptr converting move assignment
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../../deleter.h"
|
#include "../../deleter.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move assignment
|
// Test unique_ptr converting move assignment
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../../deleter.h"
|
#include "../../deleter.h"
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
// Can't assign from lvalue
|
// Can't assign from lvalue
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../../deleter.h"
|
#include "../../deleter.h"
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
// test converting move assignment with reference deleters
|
// test converting move assignment with reference deleters
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../../deleter.h"
|
#include "../../deleter.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move assignment
|
// Test unique_ptr converting move assignment
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// Can't assign from const lvalue
|
// Can't assign from const lvalue
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
// Can't assign from const lvalue
|
// Can't assign from const lvalue
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../../deleter.h"
|
#include "../../deleter.h"
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
// Can't assign from const lvalue
|
// Can't assign from const lvalue
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../../deleter.h"
|
#include "../../deleter.h"
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
// Do not convert from an array unique_ptr
|
// Do not convert from an array unique_ptr
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
struct A
|
struct A
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr(pointer) ctor
|
// Test unique_ptr(pointer) ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// template <class U> explicit unique_ptr(auto_ptr<U>&);
|
// template <class U> explicit unique_ptr(auto_ptr<U>&);
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr move ctor
|
// Test unique_ptr move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test move ctor. Should only require a MoveConstructible deleter, or if
|
// test move ctor. Should only require a MoveConstructible deleter, or if
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// Can't construct from lvalue
|
// Can't construct from lvalue
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
// Explicit version
|
// Explicit version
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../../deleter.h"
|
#include "../../deleter.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../../deleter.h"
|
#include "../../deleter.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../../deleter.h"
|
#include "../../deleter.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../../deleter.h"
|
#include "../../deleter.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../../deleter.h"
|
#include "../../deleter.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// Test unique_ptr converting move ctor
|
// Test unique_ptr converting move ctor
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
// test converting move ctor. Should only require a MoveConstructible deleter, or if
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
// Do not convert from an array unique_ptr
|
// Do not convert from an array unique_ptr
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
struct A
|
struct A
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
struct B
|
struct B
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// tuple& operator=(tuple&& u);
|
// tuple& operator=(tuple&& u);
|
||||||
|
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../MoveOnly.h"
|
#include "../MoveOnly.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// template <class... UTypes> tuple(const tuple<UTypes...>& u);
|
// template <class... UTypes> tuple(const tuple<UTypes...>& u);
|
||||||
|
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
#include <utility>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// tuple(tuple&& u);
|
// tuple(tuple&& u);
|
||||||
|
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
#include <utility>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "../MoveOnly.h"
|
#include "../MoveOnly.h"
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
// tuple<Types&&...> forward_as_tuple(Types&&... t);
|
// tuple<Types&&...> forward_as_tuple(Types&&... t);
|
||||||
|
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
#include <type_traits>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
template <class Tuple>
|
template <class Tuple>
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
// get(tuple<Types...>&& t);
|
// get(tuple<Types...>&& t);
|
||||||
|
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
#include <utility>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user