Skip to content

Commit ffb3e06

Browse files
committed
Fix wthe stubs
1 parent e91aca0 commit ffb3e06

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

cpp/common/test/includes/standard-library/deque.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#ifndef _GHLIBCPP_DEQUE
22
#define _GHLIBCPP_DEQUE
3-
#include <iterator>
4-
#include <string>
53
#include "memory.h"
6-
#include <initializer_list>
74
#include <empty.h>
5+
#include <initializer_list>
6+
#include <iterator>
7+
#include <string>
88

99
namespace std {
1010
template <class T, class Allocator = std::allocator<T>> class deque {
@@ -14,7 +14,9 @@ template <class T, class Allocator = std::allocator<T>> class deque {
1414
typedef value_type &reference;
1515
typedef const value_type &const_reference;
1616

17-
deque() = default;
17+
deque();
18+
deque(const deque &);
19+
deque(deque &&);
1820
deque(std::initializer_list<T>, const Allocator & = Allocator());
1921

2022
typedef __iterator<T> iterator;
@@ -40,4 +42,4 @@ template <class T, class Allocator = std::allocator<T>> class deque {
4042
};
4143
} // namespace std
4244

43-
#endif // _GHLIBCPP_DEQUE
45+
#endif // _GHLIBCPP_DEQUE

cpp/common/test/includes/standard-library/forward_list.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
#define _GHLIBCPP_FORWARD_LIST
33

44
#include <initializer_list>
5+
#include <memory>
56

67
namespace std {
78

8-
template<typename T>
9-
class forward_list {
9+
template <typename T, typename Alloc = std::allocator<T>> class forward_list {
1010
public:
11-
forward_list();
12-
forward_list(const forward_list&);
13-
forward_list(forward_list&&);
14-
forward_list(std::initializer_list<T>);
11+
forward_list();
12+
forward_list(const forward_list &);
13+
forward_list(forward_list &&);
14+
forward_list(std::initializer_list<T>);
1515
};
1616

1717
} // namespace std

cpp/common/test/includes/standard-library/list.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
#ifndef _GHLIBCPP_LIST
2+
23
#define _GHLIBCPP_LIST
34

45
#include <initializer_list>
6+
#include <memory>
57

68
namespace std {
79

8-
template<typename T>
9-
class list {
10+
template <typename T, typename Alloc = std::allocator<T>> class list {
1011
public:
11-
list();
12-
list(const list&);
13-
list(list&&);
14-
list(std::initializer_list<T>);
12+
list();
13+
list(const list &);
14+
list(list &&);
15+
list(std::initializer_list<T>);
1516
};
1617

1718
} // namespace std

0 commit comments

Comments
 (0)