libpqxx
The C++ client library for PostgreSQL
pqxx::string_traits< char[N]> Struct Template Referencefinal

String traits for C-style string constant ("pointer to array of char"). More...

#include <conversions.hxx>

Static Public Member Functions

static constexpr zview to_buf (std::span< char >, char const (&value)[N], ctx={}) noexcept
 
static constexpr std::size_t size_buffer (char const (&)[N]) noexcept
 
static void from_string (std::string_view, ctx={})=delete
 Don't allow conversion to this type. More...
 

Detailed Description

template<std::size_t N>
struct pqxx::string_traits< char[N]>

String traits for C-style string constant ("pointer to array of char").

Warning
This assumes that every array-of-char is a C-style string literal. So, it must include a trailing zero. and it must have static duration.

Member Function Documentation

◆ from_string()

template<std::size_t N>
static void pqxx::string_traits< char[N]>::from_string ( std::string_view  ,
ctx  = {} 
)
staticdelete

Don't allow conversion to this type.

◆ size_buffer()

template<std::size_t N>
static constexpr std::size_t pqxx::string_traits< char[N]>::size_buffer ( char   const(&)[N])
inlinestaticconstexprnoexcept

◆ to_buf()

template<std::size_t N>
static constexpr zview pqxx::string_traits< char[N]>::to_buf ( std::span< char >  ,
char const (&)  value[N],
ctx  = {} 
)
inlinestaticconstexprnoexcept

The documentation for this struct was generated from the following file: