File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ public:
34
34
template <typename... Fields>
35
35
static Box in_place(Fields &&...);
36
36
37
+ void swap(Box &) noexcept;
38
+
37
39
// Important: requires that `raw` came from an into_raw call. Do not
38
40
// pass a pointer from `new` or any other source.
39
41
static Box from_raw(T *) noexcept;
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ public:
51
51
bool operator<=(const String &) const noexcept;
52
52
bool operator>(const String &) const noexcept;
53
53
bool operator>=(const String &) const noexcept;
54
+
55
+ void swap(String &) noexcept;
54
56
};
55
57
56
58
std::ostream &operator<<(std::ostream &, const String &);
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ public:
57
57
const_iterator end() const noexcept;
58
58
const_iterator cbegin() const noexcept;
59
59
const_iterator cend() const noexcept;
60
+
61
+ void swap(Vec &) noexcept;
60
62
};
61
63
#
62
64
# template <typename T>
You can’t perform that action at this time.
0 commit comments