Skip to content

Commit 815ca8c

Browse files
committed
Revert "Omit swap member functions from website"
This reverts commit d835ac6.
1 parent d1812ba commit 815ca8c

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

book/src/binding/box.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public:
3434
template <typename... Fields>
3535
static Box in_place(Fields &&...);
3636
37+
void swap(Box &) noexcept;
38+
3739
// Important: requires that `raw` came from an into_raw call. Do not
3840
// pass a pointer from `new` or any other source.
3941
static Box from_raw(T *) noexcept;

book/src/binding/string.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ public:
5151
bool operator<=(const String &) const noexcept;
5252
bool operator>(const String &) const noexcept;
5353
bool operator>=(const String &) const noexcept;
54+
55+
void swap(String &) noexcept;
5456
};
5557
5658
std::ostream &operator<<(std::ostream &, const String &);

book/src/binding/vec.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public:
5757
const_iterator end() const noexcept;
5858
const_iterator cbegin() const noexcept;
5959
const_iterator cend() const noexcept;
60+
61+
void swap(Vec &) noexcept;
6062
};
6163
#
6264
# template <typename T>

0 commit comments

Comments
 (0)