libpqxx
The C++ client library for PostgreSQL
pqxx::string_traits< std::string_view > Struct Template Reference

String traits for string_view. More...

#include <conversions.hxx>

Static Public Member Functions

static constexpr std::size_t size_buffer (std::string_view const &value) noexcept
 
static char * into_buf (char *begin, char *end, std::string_view const &value)
 
static zview to_buf (char *begin, char *end, std::string_view const &value)
 
static std::string_view from_string (std::string_view)=delete
 Don't convert to this type; it has nowhere to store its contents. More...
 

Static Public Attributes

static constexpr bool converts_to_string {true}
 
static constexpr bool converts_from_string {false}
 

Detailed Description

template<>
struct pqxx::string_traits< std::string_view >

String traits for string_view.

Member Function Documentation

static std::string_view pqxx::string_traits< std::string_view >::from_string ( std::string_view  )
staticdelete

Don't convert to this type; it has nowhere to store its contents.

static char* pqxx::string_traits< std::string_view >::into_buf ( char *  begin,
char *  end,
std::string_view const &  value 
)
inlinestatic
static constexpr std::size_t pqxx::string_traits< std::string_view >::size_buffer ( std::string_view const &  value)
inlinestaticnoexcept
static zview pqxx::string_traits< std::string_view >::to_buf ( char *  begin,
char *  end,
std::string_view const &  value 
)
inlinestatic

Member Data Documentation

constexpr bool pqxx::string_traits< std::string_view >::converts_from_string {false}
static
constexpr bool pqxx::string_traits< std::string_view >::converts_to_string {true}
static

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