29#ifndef MYSQL_UTILS_CONCAT_H
30#define MYSQL_UTILS_CONCAT_H
51template <
class... Args_t>
52[[nodiscard]] std::string
concat(Args_t &&...args) {
56 std::ignore = (out << ... << std::forward<Args_t>(args));
70template <
class... Args_t>
71[[nodiscard]] std::optional<std::string>
concat(Args_t &&...args)
noexcept {
72 return call_and_catch(
std::string concat(Args_t &&...args)
Stream all the arguments to a stringstream and return the resulting string.
Definition: concat.h:52
Definition: gtid_format.h:47
std::optional< std::string > concat(Args_t &&...args) noexcept
Stream all the arguments to a stringstream and return the resulting string.
Definition: concat.h:71
std::basic_ostringstream< char, std::char_traits< char >, ut::allocator< char > > ostringstream
Specialization of basic_ostringstream which uses ut::allocator.
Definition: ut0new.h:2876