|
libpqxx
The C++ client library for PostgreSQL
|
String traits for builtin floating-point types. More...
#include <conversions.hxx>
Static Public Member Functions | |
| static PQXX_LIBEXPORT T | from_string (std::string_view text, ctx={}) |
| static PQXX_LIBEXPORT std::string_view | to_buf (std::span< char > buf, T const &value, ctx c={}) |
| static constexpr std::size_t | digits10 (std::size_t value) noexcept |
| static constexpr PQXX_INLINE_COV std::size_t | size_buffer (T const &) noexcept |
String traits for builtin floating-point types.
It would make sense to define this directly as the definition for pqxx::string_traits<T> where T is a std::floating_point. However Visual Studio 2022 does not seem to accept that syntax.
So instead, we create a separate base class for std::floating_point types and then derive specialisations of pqxx::string_traits from that.
|
inlinestaticconstexprnoexcept |
|
static |
|
inlinestaticconstexprnoexcept |
|
static |