1#ifndef Podd_CustomAlloc_h_
2#define Podd_CustomAlloc_h_
12template<
typename T,
typename A=std::allocator<T>>
14 typedef std::allocator_traits<A>
a_t;
26 noexcept(std::is_nothrow_default_constructible<U>::value) {
27 ::new(
static_cast<void*
>(ptr)) U;
29 template<
typename U,
typename...Args>
31 a_t::construct(
static_cast<A&
>(*
this),
32 ptr, std::forward<Args>(args)...);
38using VectorUIntNI = std::vector<UInt_t, default_init_allocator<UInt_t>>;
void construct(U *ptr, Args &&... args)
void construct(U *ptr) noexcept(std::is_nothrow_default_constructible< U >::value)
std::allocator_traits< A > a_t
std::vector< UInt_t > VectorUInt
std::vector< UInt_t, default_init_allocator< UInt_t > > VectorUIntNI