MySQL 9.6.0
Source Code Documentation
mysql::strconv::detail::Policy_growable_string< Representation_tp > Class Template Reference

Base class for Out_str_growable_string. More...

#include <out_str.h>

Inheritance diagram for mysql::strconv::detail::Policy_growable_string< Representation_tp >:
[legend]

Public Member Functions

 Policy_growable_string (auto &...args)
 Construct a new object, forwarding all arguments to the base class. More...
 
mysql::utils::Return_status resize (std::size_t size) const
 Resize the std::string object. More...
 

Static Public Attributes

static constexpr auto resize_policy = Resize_policy::growable
 
static constexpr auto null_terminated = Null_terminated::yes
 

Detailed Description

template<class Representation_tp>
class mysql::strconv::detail::Policy_growable_string< Representation_tp >

Base class for Out_str_growable_string.

Template Parameters
Representation_tpbase class to inherit from, which provides the string representation.

Constructor & Destructor Documentation

◆ Policy_growable_string()

template<class Representation_tp >
mysql::strconv::detail::Policy_growable_string< Representation_tp >::Policy_growable_string ( auto &...  args)
inlineexplicit

Construct a new object, forwarding all arguments to the base class.

Member Function Documentation

◆ resize()

template<class Representation_tp >
mysql::utils::Return_status mysql::strconv::detail::Policy_growable_string< Representation_tp >::resize ( std::size_t  size) const
inline

Resize the std::string object.

Parameters
sizeThe new size
Returns
Return_status::ok on success, Return_status::error if an out-of-memory error occurs.

Member Data Documentation

◆ null_terminated

template<class Representation_tp >
constexpr auto mysql::strconv::detail::Policy_growable_string< Representation_tp >::null_terminated = Null_terminated::yes
staticconstexpr

◆ resize_policy

template<class Representation_tp >
constexpr auto mysql::strconv::detail::Policy_growable_string< Representation_tp >::resize_policy = Resize_policy::growable
staticconstexpr

The documentation for this class was generated from the following file: