MySQL 9.6.0
Source Code Documentation
encode.h File Reference

Experimental API header. More...

Go to the source code of this file.

Classes

class  mysql::strconv::Streamable< String_t >
 Wrapper around an std::optional<std::string> object returned from encode, intended to be passed to operator<<, allowing it to implement ostream-idiomatic error handling. More...
 

Namespaces

namespace  mysql
 
namespace  mysql::strconv
 
namespace  mysql::strconv::throwing
 

Functions

std::size_t mysql::strconv::compute_encoded_length (const Is_format auto &format, const auto &object)
 Return the string length of the object. More...
 
void mysql::strconv::encode (const Is_format auto &format, const Is_out_str_fixed auto &out_str, const auto &object)
 Write the string representation of the object to the given string output wrapper. More...
 
auto mysql::strconv::encode (const Is_format auto &format, const Is_out_str_growable auto &out_str, const auto &object)
 Write the string representation of the object to the given string output wrapper. More...
 
template<class String_t = std::string>
String_t mysql::strconv::throwing::encode (const Is_format auto &format, const auto &object)
 Return an std::string object holding the string representation of the given object. More...
 
template<class String_t = std::string>
std::optional< String_t > mysql::strconv::encode (const Is_format auto &format, const auto &object)
 Return an std::optional<std::string> object holding the string representation of the object. More...
 
template<class String_t = std::string>
Streamable< String_t > mysql::strconv::encode_to_streamable (const Is_format auto &format, const auto &object)
 Return a Streamable object holding the result from encode(format, object). More...
 
std::ostream & mysql::strconv::operator<< (std::ostream &out, const mysql::meta::Is_specialization< Streamable > auto &streamable)
 Use output operator to write the string representation of a format-tagged object to the given ostream. More...
 

Detailed Description

Experimental API header.