16#ifndef TVAlloc_included
17#define TVAlloc_included
25template<
typename T,
typename Alloc = std::allocator<T> >
28 using a_t = std::allocator_traits<Alloc>;
42 void construct (U* ptr)
noexcept( std::is_nothrow_default_constructible< U>::value)
44 ::new(
static_cast<void*
>(ptr)) U;
48 template<
typename U,
typename... Args>
52 static_cast<Alloc&
>(*
this),
53 ptr, std::forward<Args>(args)...);
void construct(U *ptr, Args &&... args)
void construct(U *ptr) noexcept(std::is_nothrow_default_constructible< U >::value)
TVAlloc< U, typename a_t::template rebind_alloc< U > > other