libpqxx
Utility functions

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...
 

Detailed Description

Function Documentation

◆ separated_list() [1/3]

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.

Use this to turn e.g. the numbers 1, 2, and 3 into a string "1, 2, 3".

Parameters
sepseparator string (to be placed between items)
beginbeginning of items sequence
endend of items sequence
accessfunctor 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().

◆ separated_list() [2/3]

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.

References pqxx::separated_list().

◆ separated_list() [3/3]

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.

References pqxx::separated_list().