TVAlloc#

#include <TVAlloc.h>
Brief description

How to reference this class#

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

: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#

Definition
void TVAlloc<T, Alloc>::construct(U *ptr) noexcept(std::is_nothrow_default_constructible< U >::value)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void TVAlloc<T, Alloc>::construct(U *ptr) noexcept(std::is_nothrow_default_constructible< U >::value) <tvalloc-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)](#tvalloc-public-void-tvalloc-t-alloc-construct-u-ptr-ptr-noexcept-std-is-nothrow-default-constructible-u-value)

construct#

Definition
void TVAlloc<T, Alloc>::construct(U *ptr, Args &&... args)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void TVAlloc<T, Alloc>::construct(U *ptr, Args &&... args) <tvalloc-public-void-tvalloc-t-alloc-construct-u-ptr-ptr-args-ref-ref-...-args>`
[void TVAlloc<T, Alloc>::construct(U *ptr, Args &&... args)](#tvalloc-public-void-tvalloc-t-alloc-construct-u-ptr-ptr-args-ref-ref-...-args)

Attributes Documentation#