Dev Essential  1.6.3
Loading...
Searching...
No Matches
strings_numeric_traits_impl.h
Go to the documentation of this file.
1
14
15#ifndef A_UTIL_UTIL_STRINGS_DETAIL_STRINGS_NUMERIC_TRAITS_IMPL_HEADER_INCLUDED
16#define A_UTIL_UTIL_STRINGS_DETAIL_STRINGS_NUMERIC_TRAITS_IMPL_HEADER_INCLUDED
17
19
20namespace a_util {
21namespace strings {
22template <typename Numeric>
23bool isNumeric(const char* str)
24{
25 return IsNumericConvertible::check(str, Numeric());
26}
27
28template <typename Numeric>
29bool isNumeric(const std::string& str)
30{
31 return isNumeric<Numeric>(str.c_str());
32}
33
34} // namespace strings
35} // namespace a_util
36
37#endif // A_UTIL_UTIL_STRINGS_DETAIL_STRINGS_NUMERIC_TRAITS_IMPL_HEADER_INCLUDED
Serves as component for string handling and conversion functionality.
Definition strings.h:20
bool isNumeric(const char *str)
Definition strings_numeric_traits_impl.h:23
Serves as the root component, with common functionality documented in core functionality.
Definition base.h:24
static bool check(const char *from, const bool &)