24#ifndef MYSQL_STRCONV_ENCODE_CONCAT_H
25#define MYSQL_STRCONV_ENCODE_CONCAT_H
40template <std::size_t
index = 0,
class... Args_t>
43 if constexpr (
index <
sizeof...(Args_t)) {
44 target.write(
format, std::get<index>(concat_object.
m_args));
45 encode_impl<index + 1>(
format, target, concat_object);
59template <Is_format Format_t,
class... Args_t>
80template <Is_format Format_t, Is_out_str Out_str_t,
class... Args_t>
82 const Args_t &...args)
noexcept {
101template <
class String_t = std::string, Is_format Format_t,
class... Args_t>
123template <
class String_t = std::string,
Is_format Format_t,
class... Args_t>
125 return mysql::strconv::throwing::encode<String_t>(
Concept that holds for String_counter and String_writer.
Definition: string_target.h:111
bool index(const std::string &value, const String &search_for, uint32_t *idx)
Definition: contains.h:76
auto concat(const Format_t &format, const Args_t &...args)
Concatenate the string representations of the objects and return a std::string object holding the res...
Definition: concat.h:124
Definition: gtid_binary_format.h:41
void encode(const Debug_format &format, Is_string_target auto &target, const Repeat &repeat)
Definition: debug_repeat.h:39
auto concat_length(const Format_t &format, const Args_t &...args) noexcept
Compute the length of the concatenation of the string representations of the objects.
Definition: concat.h:60
auto concat(const Format_t &format, const Out_str_t &out, const Args_t &...args) noexcept
Concatenate the string representations of the objects into the output string wrapper.
Definition: concat.h:81
std::size_t compute_encoded_length(const Is_format auto &format, const auto &object)
Return the string length of the object.
Definition: encode.h:57
void encode_impl(const Gtid_binary_format &format, Is_string_target auto &target, const mysql::gtids::Is_tag auto &tag)
Definition: gtid_binary_format_conv.h:48
Helper type that wraps the varargs of concat in a struct containing a tuple.
Definition: concat_object.h:40
Tuple_t m_args
Tuple holding objects to be concatenated.
Definition: concat_object.h:48