TVAlloc#
#include <TVAlloc.h>
How to cite this class in this doc#
:ref:`TVAlloc <class-template-tvalloc>`
[TVAlloc](#class-template-tvalloc)
Detailed description#
Allocator adaptor that intercepts the ‘construct’ calls to convert value initialization into default initialization Written by Casey Carter (codercasey) Taken from This allows “std::vector<T>(30)” to only allocate, not initialize, the data.
Inherits from#
public :
std::allocator
<T>
List of Public Methods#
Complete Member Function Documentation#
construct
void TVAlloc<T, Alloc>::construct(U *ptr) noexcept(std::is_nothrow_default_constructible< U >::value)
How to cite in this doc:
:ref:`void TVAlloc<T, Alloc>::construct(U *ptr) noexcept(std::is_nothrow_default_constructible< U >::value) <public-void-tvalloc-t-alloc-construct-u-ptr-ptr-noexcept-std-is-nothrow-default-constructible-u-value>`
[void TVAlloc<T, Alloc>::construct(U *ptr) noexcept(std::is_nothrow_default_constructible< U >::value)](#public-void-tvalloc-t-alloc-construct-u-ptr-ptr-noexcept-std-is-nothrow-default-constructible-u-value)
construct
void TVAlloc<T, Alloc>::construct(U *ptr, Args &&... args)
How to cite in this doc:
:ref:`void TVAlloc<T, Alloc>::construct(U *ptr, Args &&... args) <public-void-tvalloc-t-alloc-construct-u-ptr-ptr-args-ref-ref-...-args>`
[void TVAlloc<T, Alloc>::construct(U *ptr, Args &&... args)](#public-void-tvalloc-t-alloc-construct-u-ptr-ptr-args-ref-ref-...-args)