15 #ifndef RCLCPP__ALLOCATOR__ALLOCATOR_DELETER_HPP_ 16 #define RCLCPP__ALLOCATOR__ALLOCATOR_DELETER_HPP_ 26 template<
typename Allocator>
68 Allocator * allocator_;
71 template<
typename Alloc,
typename T,
typename D>
79 template<
typename T,
typename U>
86 template<
typename Alloc,
typename T>
89 if (!deleter || !alloc) {
95 template<
typename Alloc,
typename T>
100 AllocatorDeleter<Alloc>
105 #endif // RCLCPP__ALLOCATOR__ALLOCATOR_DELETER_HPP_
Definition: allocator_deleter.hpp:27
Definition: allocator_common.hpp:24
void set_allocator_for_deleter(D *deleter, Alloc *alloc)
Definition: allocator_deleter.hpp:72
AllocatorDeleter(const AllocatorDeleter< T > &a)
Definition: allocator_deleter.hpp:44
AllocatorDeleter(Allocator *a)
Definition: allocator_deleter.hpp:38
void operator()(T *ptr)
Definition: allocator_deleter.hpp:50
Allocator * get_allocator() const
Definition: allocator_deleter.hpp:57
void set_allocator(Allocator *alloc)
Definition: allocator_deleter.hpp:62
typename std::conditional< std::is_same< typename std::allocator_traits< Alloc >::template rebind_alloc< T >, typename std::allocator< void >::template rebind< T >::other >::value, std::default_delete< T >, AllocatorDeleter< Alloc > >::type Deleter
Definition: allocator_deleter.hpp:101
AllocatorDeleter()
Definition: allocator_deleter.hpp:33