libpqxx
7.1.2
|
Functions | |
template<typename ITER , typename ACCESS > | |
std::string | pqxx::separated_list (std::string_view sep, ITER begin, ITER end, ACCESS access) |
Represent sequence of values as a string, joined by a given separator. More... | |
template<typename ITER > | |
std::string | pqxx::separated_list (std::string_view sep, ITER begin, ITER end) |
Render sequence as a string, using given separator between items. More... | |
template<typename CONTAINER > | |
auto | pqxx::separated_list (std::string_view sep, CONTAINER const &c) -> typename std::enable_if<(not std::is_void< decltype(std::begin(c))>::value and not std::is_void< decltype(std::end(c))>::value), std::string >::type |
Render items in a container as a string, using given separator. More... | |
template<typename TUPLE , std::size_t INDEX = 0, typename ACCESS , typename std::enable_if<(INDEX==std::tuple_size< TUPLE >::value - 1), int >::type = 0> | |
std::string | pqxx::separated_list (std::string_view, TUPLE const &t, ACCESS const &access) |
Render items in a tuple as a string, using given separator. More... | |
template<typename TUPLE , std::size_t INDEX = 0, typename ACCESS > | |
std::string | pqxx::separated_list (std::string_view sep, TUPLE const &t, ACCESS const &access) |
template<typename TUPLE , std::size_t INDEX = 0> | |
std::string | pqxx::separated_list (std::string_view sep, TUPLE const &t) |
std::string pqxx::separated_list | ( | std::string_view | sep, |
ITER | begin, | ||
ITER | end, | ||
ACCESS | access | ||
) |
Represent sequence of values as a string, joined by a given separator.
Use this to turn e.g. the numbers 1, 2, and 3 into a string "1, 2, 3".
sep | separator string (to be placed between items) |
begin | beginning of items sequence |
end | end of items sequence |
access | functor defining how to dereference sequence elements |
References pqxx::to_string().
Referenced by pqxx::pipeline::resume(), pqxx::separated_list(), pqxx::stream_from::stream_from(), and pqxx::stream_to::stream_to().
std::string pqxx::separated_list | ( | std::string_view | sep, |
ITER | begin, | ||
ITER | end | ||
) |
Render sequence as a string, using given separator between items.
References pqxx::separated_list().
auto pqxx::separated_list | ( | std::string_view | sep, |
CONTAINER const & | c | ||
) | -> typename std::enable_if< (not std::is_void<decltype(std::begin(c))>::value and not std::is_void<decltype(std::end(c))>::value), std::string>::type |
Render items in a container as a string, using given separator.
References pqxx::separated_list().
std::string pqxx::separated_list | ( | std::string_view | , |
TUPLE const & | t, | ||
ACCESS const & | access | ||
) |
Render items in a tuple as a string, using given separator.
References pqxx::to_string().
std::string pqxx::separated_list | ( | std::string_view | sep, |
TUPLE const & | t, | ||
ACCESS const & | access | ||
) |
References pqxx::to_string().
std::string pqxx::separated_list | ( | std::string_view | sep, |
TUPLE const & | t | ||
) |
References pqxx::separated_list().