libpqxx
The C++ client library for PostgreSQL
Loading...
Searching...
No Matches
separated_list.hxx File Reference
#include <algorithm>
#include <numeric>
#include "pqxx/strconv.hxx"

Go to the source code of this file.

Namespaces

namespace  pqxx
 The home of all libpqxx classes, functions, templates, etc.

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.
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.
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.
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.
template<typename TUPLE, std::size_t INDEX = 0, typename std::enable_if<(INDEX<=std::tuple_size< TUPLE >::value), int >::type = 0>
std::string pqxx::separated_list (std::string_view sep, TUPLE const &t)