MySQL 9.6.0
Source Code Documentation
mysql::strconv::detail::Policy_fixed< Representation_tp, null_terminated_tp > Class Template Reference

Base class for all Out_str_fixed* classes. More...

#include <out_str.h>

Inheritance diagram for mysql::strconv::detail::Policy_fixed< Representation_tp, null_terminated_tp >:
[legend]

Public Member Functions

template<class... Args_t>
requires mysql::meta::Not_decayed<This_t, Args_t...>
 Policy_fixed (Args_t &&...args)
 Construct a new object, forwarding all arguments to the base class. More...
 
void resize (std::size_t size_arg) const
 Assume that the character buffer has at least the given new size, and store the new size. More...
 

Static Public Attributes

static constexpr auto resize_policy = Resize_policy::fixed
 
static constexpr auto null_terminated = null_terminated_tp
 

Private Types

using This_t = Policy_fixed< Representation_tp, null_terminated_tp >
 

Detailed Description

template<class Representation_tp, Null_terminated null_terminated_tp>
class mysql::strconv::detail::Policy_fixed< Representation_tp, null_terminated_tp >

Base class for all Out_str_fixed* classes.

Template Parameters
Representation_tpbase class to inherit from, which provides the string representation.
null_terminated_tpIndicate whether the string should be null-terminated or not.

Member Typedef Documentation

◆ This_t

template<class Representation_tp , Null_terminated null_terminated_tp>
using mysql::strconv::detail::Policy_fixed< Representation_tp, null_terminated_tp >::This_t = Policy_fixed<Representation_tp, null_terminated_tp>
private

Constructor & Destructor Documentation

◆ Policy_fixed()

template<class Representation_tp , Null_terminated null_terminated_tp>
template<class... Args_t>
requires mysql::meta::Not_decayed<This_t, Args_t...>
mysql::strconv::detail::Policy_fixed< Representation_tp, null_terminated_tp >::Policy_fixed ( Args_t &&...  args)
inlineexplicit

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

Member Function Documentation

◆ resize()

template<class Representation_tp , Null_terminated null_terminated_tp>
void mysql::strconv::detail::Policy_fixed< Representation_tp, null_terminated_tp >::resize ( std::size_t  size_arg) const
inline

Assume that the character buffer has at least the given new size, and store the new size.

Parameters
size_argThe new size.

Member Data Documentation

◆ null_terminated

template<class Representation_tp , Null_terminated null_terminated_tp>
constexpr auto mysql::strconv::detail::Policy_fixed< Representation_tp, null_terminated_tp >::null_terminated = null_terminated_tp
staticconstexpr

◆ resize_policy

template<class Representation_tp , Null_terminated null_terminated_tp>
constexpr auto mysql::strconv::detail::Policy_fixed< Representation_tp, null_terminated_tp >::resize_policy = Resize_policy::fixed
staticconstexpr

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