diff options
author | Neil <nyamatongwe@gmail.com> | 2022-07-29 11:16:28 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-07-29 11:16:28 +1000 |
commit | e030b1d56785405cb35531758d603be88af9b487 (patch) | |
tree | 9a428393f7963d50a0b7557e7c77ac1be37c7bb3 /src/SparseVector.h | |
parent | 6e6641d4733903d3c365fd9348f3656ff7000ddf (diff) | |
download | scintilla-mirror-e030b1d56785405cb35531758d603be88af9b487.tar.gz |
Apply rule-of-zero to delete standard methods where possible as handled by
contained types. This allows flexibility as most lower-level data types can be
moved and SplitVector and Partitioning of non-move-only types may be copied.
CellBuffer still needs destructor due to incomplete type so retains all standard
operations.
Diffstat (limited to 'src/SparseVector.h')
-rw-r--r-- | src/SparseVector.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/SparseVector.h b/src/SparseVector.h index cc3fe1448..f8c35fdc5 100644 --- a/src/SparseVector.h +++ b/src/SparseVector.h @@ -31,12 +31,6 @@ public: values = SplitVector<T>(); values.InsertEmpty(0, 2); } - // Deleted so SparseVector objects can not be copied. - SparseVector(const SparseVector &) = delete; - SparseVector(SparseVector &&) = delete; - void operator=(const SparseVector &) = delete; - void operator=(SparseVector &&) = delete; - ~SparseVector() noexcept = default; Sci::Position Length() const noexcept { return starts.Length(); } |