MySQL 9.0.0
Source Code Documentation
|
allocator which leaves newly constructed fields "default initialized". More...
#include <default_init_allocator.h>
Classes | |
struct | rebind |
Public Member Functions | |
template<class U > | |
void | construct (U *ptr) noexcept(std::is_nothrow_default_constructible< U >::value) |
template<class U , class... Args> | |
void | construct (U *ptr, Args &&... args) |
Private Types | |
using | a_t = std::allocator_traits< A > |
allocator which leaves newly constructed fields "default initialized".
in case of std::vector<int> after a resize() the newly added fields would be uninitialized.
useful in case of network-buffers it will be read() into right afterwards.
|
private |
|
inlinenoexcept |
|
inline |