rclcpp
master
C++ ROS Client Library API
|
Go to the documentation of this file.
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_
AllocatorDeleter(const AllocatorDeleter< T > &a)
Definition: allocator_deleter.hpp:44
Allocator * get_allocator() const
Definition: allocator_deleter.hpp:57
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
void set_allocator_for_deleter(D *deleter, Alloc *alloc)
Definition: allocator_deleter.hpp:72
Definition: allocator_deleter.hpp:27
void operator()(T *ptr)
Definition: allocator_deleter.hpp:50
void set_allocator(Allocator *alloc)
Definition: allocator_deleter.hpp:62
AllocatorDeleter()
Definition: allocator_deleter.hpp:33
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(Allocator *a)
Definition: allocator_deleter.hpp:38