17#ifndef IOX2_BB_UTILITY_CONVERT_HPP
18#define IOX2_BB_UTILITY_CONVERT_HPP
68 template <
typename Source>
69 static typename std::enable_if<!std::is_convertible<Source, std::string>::value, std::string>::type
77 template <
typename Source>
78 static typename std::enable_if<std::is_convertible<Source, std::string>::value, std::string>::type
88 template <
typename TargetType>
92 template <
typename TargetType,
typename CallType>
95 template <
typename TargetType,
typename SourceType>
101 template <
typename SourceType>
104 template <
typename TargetType,
typename SourceType>
108 static bool start_with_neg_sign(
const char*
v)
noexcept;
114#include "iox2/legacy/detail/convert.inl"
Collection of static methods for conversion from and to string.
static constexpr uint32_t FLOAT_SIGNALING_NAN_MASK
static constexpr int32_t STRTOLL_BASE
static bb::Optional< TargetType > from_string(const char *v) noexcept
convert the input based on the 'TargetType', allowing only numeric types as valid destination types
static constexpr int32_t STRTOL_BASE
static constexpr int32_t STRTOULL_BASE
static std::enable_if< std::is_convertible< Source, std::string >::value, std::string >::type toString(const Source &t) noexcept
Converts every type which is either a pod (plain old data) type or is convertable to a string (this m...
static std::enable_if<!std::is_convertible< Source, std::string >::value, std::string >::type toString(const Source &t) noexcept
Converts every type which is either a pod (plain old data) type or is convertable to a string (this m...
static constexpr uint64_t DOUBLE_SIGNALING_NAN_MASK
static constexpr int32_t STRTOUL_BASE
iox2::bb::variation::Optional< T > Optional
constexpr bool always_false_v
Helper value to bind a static_assert to a type.