libpqxx
|
Functions | |
template<typename ITER , typename ACCESS > | |
std::string | pqxx::separated_list (const std::string &sep, ITER begin, ITER end, ACCESS access) |
Represent sequence of values as a separated string. More... | |
template<typename ITER > | |
std::string | pqxx::separated_list (const std::string &sep, ITER begin, ITER end) |
Render sequence as a string, using given separator between items. More... | |
template<typename CONTAINER > | |
std::string | pqxx::separated_list (const std::string &sep, const CONTAINER &c) |
Render items in a container as a string, using given separator. More... | |
std::string pqxx::separated_list | ( | const std::string & | sep, |
ITER | begin, | ||
ITER | end, | ||
ACCESS | access | ||
) |
Represent sequence of values as a separated string.
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::tablestream::columnlist(), pqxx::tablewriter::generate(), pqxx::pipeline::resume(), and pqxx::separated_list().
std::string pqxx::separated_list | ( | const std::string & | sep, |
ITER | begin, | ||
ITER | end | ||
) |
Render sequence as a string, using given separator between items.
References pqxx::separated_list().
std::string pqxx::separated_list | ( | const std::string & | sep, |
const CONTAINER & | c | ||
) |
Render items in a container as a string, using given separator.
References pqxx::separated_list().