1#ifndef VISTLE_UTIL_ALLOCATOR_H
2#define VISTLE_UTIL_ALLOCATOR_H
11template<
typename T,
typename A = std::allocator<T>>
13 typedef std::allocator_traits<A> a_t;
24 void construct(U *ptr)
noexcept(std::is_nothrow_default_constructible<U>::value)
26 ::new (
static_cast<void *
>(ptr)) U;
28 template<
typename U,
typename... Args>
31 a_t::construct(
static_cast<A &
>(*
this), ptr, std::forward<Args>(args)...);
Definition: allocator.h:12
void construct(U *ptr, Args &&...args)
Definition: allocator.h:29
void construct(U *ptr) noexcept(std::is_nothrow_default_constructible< U >::value)
Definition: allocator.h:24
Definition: allocator.h:17
Definition: allobjects.cpp:30