We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
aligned_array
1 parent 65bac92 commit 7eb62adCopy full SHA for 7eb62ad
less_slow.cpp
@@ -358,6 +358,12 @@ class aligned_array {
358
if (!data_) throw std::bad_alloc();
359
}
360
~aligned_array() noexcept { std::free(data_); }
361
+
362
+ aligned_array(aligned_array const &) = delete;
363
+ aligned_array &operator=(aligned_array const &) = delete;
364
+ aligned_array(aligned_array &&) = delete;
365
+ aligned_array &operator=(aligned_array &&) = delete;
366
367
type_ *begin() const noexcept { return data_; }
368
type_ *end() const noexcept { return data_ + size_; }
369
type_ &operator[](std::size_t index) noexcept { return data_[index]; }
0 commit comments