userver: userver/utils/from_string.hpp File Reference
Loading...
Searching...
No Matches
from_string.hpp File Reference

Detailed Description

Extract the number contained in the string. No space characters or other extra characters allowed. Supported types:

Definition in file from_string.hpp.

Go to the source code of this file.

#include <cctype>
#include <cerrno>
#include <charconv>
#include <cstdint>
#include <cstdlib>
#include <limits>
#include <string>
#include <string_view>
#include <type_traits>
#include <typeindex>
#include <typeinfo>
#include <userver/utils/meta_light.hpp>
+ Include dependency graph for from_string.hpp:

Namespaces

namespace  utils
 Utilities.
 

Functions

template<typename T , typename StringType , typename = std::enable_if_t< std::is_convertible_v<StringType, std::string_view>>>
utils::FromString (const StringType &str)
 Extract the number contained in the string. No space characters or other extra characters allowed. Supported types:
 
std::int64_t utils::FromHexString (const std::string &str)