rclcpp  beta1
C++ ROS Client Library API
Classes | Namespaces | Typedefs | Functions
allocator_deleter.hpp File Reference
#include <memory>
#include <stdexcept>

Go to the source code of this file.

Classes

class  rclcpp::allocator::AllocatorDeleter< Allocator >
 

Namespaces

 rclcpp
 
 rclcpp::allocator
 

Typedefs

template<typename Alloc , typename T >
using rclcpp::allocator::Deleter = 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
 

Functions

template<typename Alloc , typename T , typename D >
void rclcpp::allocator::set_allocator_for_deleter (D *deleter, Alloc *alloc)
 
template<typename T , typename U >
void rclcpp::allocator::set_allocator_for_deleter (std::default_delete< T > *deleter, std::allocator< U > *alloc)
 
template<typename Alloc , typename T >
void rclcpp::allocator::set_allocator_for_deleter (AllocatorDeleter< T > *deleter, Alloc *alloc)