add array constexpr member-functions fill, assign

This commit is contained in:
bolero-MURAKAMI 2012-10-05 01:53:39 +09:00
parent d76d714816
commit a660478548
10 changed files with 110 additions and 70 deletions

View file

@ -8,7 +8,8 @@
namespace sprout {
template<typename T, std::size_t N>
inline SPROUT_CONSTEXPR std::size_t hash_value(sprout::array<T, N> const& v) {
inline SPROUT_CONSTEXPR std::size_t
hash_value(sprout::array<T, N> const& v) {
return sprout::hash_range(v.begin(), v.end());
}
} // namespace sprout