MySQL 9.6.0
Source Code Documentation
concat.h File Reference

Convenience function that concatenates arbitrary arguments, by feeding them to an ostringstream. More...

#include <sstream>
#include <string>
#include <utility>
#include "mysql/utils/call_and_catch.h"

Go to the source code of this file.

Namespaces

namespace  mysql
 
namespace  mysql::utils
 
namespace  mysql::utils::throwing
 

Functions

template<class... Args_t>
std::string mysql::utils::throwing::concat (Args_t &&...args)
 Stream all the arguments to a stringstream and return the resulting string. More...
 
template<class... Args_t>
std::optional< std::string > mysql::utils::concat (Args_t &&...args) noexcept
 Stream all the arguments to a stringstream and return the resulting string. More...
 

Detailed Description

Convenience function that concatenates arbitrary arguments, by feeding them to an ostringstream.