Lines Matching refs:T
34 template <typename T>
35 bool ParseUint(const char* s, T* out, T max = std::numeric_limits<T>::max(),
37 static_assert(std::is_unsigned<T>::value, "ParseUint can only be used with unsigned types");
70 *out = static_cast<T>(result);
76 template <typename T>
77 bool ParseUint(const std::string& s, T* out, T max = std::numeric_limits<T>::max(),
82 template <typename T>
83 bool ParseByteCount(const char* s, T* out, T max = std::numeric_limits<T>::max()) {
88 template <typename T>
89 bool ParseByteCount(const std::string& s, T* out, T max = std::numeric_limits<T>::max()) {
97 template <typename T>
98 bool ParseInt(const char* s, T* out,
99 T min = std::numeric_limits<T>::min(),
100 T max = std::numeric_limits<T>::max()) {
101 static_assert(std::is_signed<T>::value, "ParseInt can only be used with signed types");
122 *out = static_cast<T>(result);
128 template <typename T>
129 bool ParseInt(const std::string& s, T* out,
130 T min = std::numeric_limits<T>::min(),
131 T max = std::numeric_limits<T>::max()) {