예제 #1
0
	inline SPROUT_CONSTEXPR FloatType
	string_to_float(sprout::basic_string<Elem, N, Traits> const& str) {
		return sprout::detail::str_to_float<FloatType>(str.begin());
	}
예제 #2
0
	inline SPROUT_CONSTEXPR FloatType
	string_to_float(sprout::basic_string<Elem, N, Traits> const& str, std::size_t* idx) {
		return !idx ? sprout::detail::str_to_float<FloatType>(str.begin())
			: sprout::detail::string_to_float_dynamic<FloatType>(str, idx)
			;
	}
예제 #3
0
	inline SPROUT_CONSTEXPR IntType
	string_to_int(sprout::basic_string<Elem, N, Traits> const& str, std::size_t* idx, int base = 10) {
		return !idx ? sprout::detail::str_to_int<IntType>(str.begin(), base)
			: sprout::detail::string_to_int_dynamic<IntType>(str, idx, base)
			;
	}
예제 #4
0
	inline SPROUT_CONSTEXPR IntType
	string_to_int(sprout::basic_string<Elem, N, Traits> const& str, int base = 10) {
		return sprout::detail::str_to_int<IntType>(str.begin(), base);
	}
예제 #5
0
파일: hash.hpp 프로젝트: darkfall/Sprout
	inline SPROUT_CONSTEXPR std::size_t hash_value(sprout::basic_string<T, N, Traits> const& v) {
		return sprout::hash_range(v.begin(), v.end());
	}