null_array 追加

This commit is contained in:
bolero-MURAKAMI 2011-10-06 21:45:01 +09:00
parent a52257117e
commit 6ae26b7470
7 changed files with 680 additions and 11 deletions

View file

@ -131,12 +131,12 @@ namespace sprout {
void swap(array<T, N>& other) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(std::swap(std::declval<T&>(), std::declval<T&>()))) {
std::swap_ranges(other.begin(), other.end(), begin());
}
template <typename T2>
template<typename T2>
array<T, N>& operator=(array<T2, N> const& rhs) {
std::copy(rhs.begin(), rhs.end(), begin());
return *this;
}
template <typename T2>
template<typename T2>
array<T, N>& operator=(array<T2, N>&& rhs) {
std::move(rhs.begin(), rhs.end(), begin());
return *this;