diff options
author | David Tolnay <dtolnay@gmail.com> | 2021-01-02 12:34:12 -0800 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2021-01-02 12:34:12 -0800 |
commit | 8f68939ae9ed577aaac84902de3aba9ebdacd6cd (patch) | |
tree | ea4fe129537e2ccd0aa788273b6d55b07a5497a0 /src/cxx.cc | |
parent | 2ae80499c114c08167d230521c81d870b32e9aec (diff) | |
download | cxx-8f68939ae9ed577aaac84902de3aba9ebdacd6cd.tar.gz |
Remove Str and Slice swaps
Diffstat (limited to 'src/cxx.cc')
-rw-r--r-- | src/cxx.cc | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -215,12 +215,6 @@ Str::operator std::string() const { return std::string(this->data(), this->size()); } -void Str::swap(Str &rhs) noexcept { - using std::swap; - swap(this->ptr, rhs.ptr); - swap(this->len, rhs.len); -} - Str::const_iterator Str::begin() const noexcept { return this->cbegin(); } Str::const_iterator Str::end() const noexcept { return this->cend(); } |