コード例 #1
0
ファイル: comparison.hpp プロジェクト: Fadis/Sprout
	inline SPROUT_CONSTEXPR bool
	operator<(sprout::array<T, N> const& lhs, sprout::array<T, N> const& rhs) {
		return sprout::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(), rhs.end());
	}
コード例 #2
0
ファイル: hash.hpp プロジェクト: darkfall/Sprout
	inline SPROUT_CONSTEXPR std::size_t hash_value(sprout::array<T, N> const& v) {
		return sprout::hash_range(v.begin(), v.end());
	}
コード例 #3
0
ファイル: comparison.hpp プロジェクト: Fadis/Sprout
	inline SPROUT_CONSTEXPR bool
	operator==(sprout::array<T, N> const& lhs, sprout::array<T, N> const& rhs) {
		return sprout::equal(lhs.begin(), lhs.end(), rhs.begin());
	}