mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-02 14:04:20 +00:00
add back_inserter, front_inserter
This commit is contained in:
parent
7c706381d4
commit
74e83e31a7
70 changed files with 1094 additions and 186 deletions
|
@ -60,7 +60,7 @@ namespace sprout {
|
|||
SPROUT_CONSTEXPR array fill(const_reference value) const {
|
||||
return fill_impl(value, sprout::index_n<0, N>::make());
|
||||
}
|
||||
void swap(array<T, N>& other)
|
||||
void swap(array& other)
|
||||
SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(std::swap(std::declval<T&>(), std::declval<T&>())))
|
||||
{
|
||||
std::swap_ranges(other.begin(), other.end(), begin());
|
||||
|
@ -176,12 +176,12 @@ namespace sprout {
|
|||
}
|
||||
// others:
|
||||
template<typename T2>
|
||||
array<T, N>& operator=(array<T2, N> const& rhs) {
|
||||
array& operator=(array<T2, N> const& rhs) {
|
||||
std::copy(rhs.begin(), rhs.end(), begin());
|
||||
return *this;
|
||||
}
|
||||
template<typename T2>
|
||||
array<T, N>& operator=(array<T2, N>&& rhs) {
|
||||
array& operator=(array<T2, N>&& rhs) {
|
||||
std::move(rhs.begin(), rhs.end(), begin());
|
||||
return *this;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue