Skip to content

Commit d884f24

Browse files
stevewolterwjwwood
andauthored
Update rclcpp/include/rclcpp/allocator/allocator_common.hpp
Co-authored-by: William Woodall <[email protected]>
1 parent b4ac2cb commit d884f24

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

rclcpp/include/rclcpp/allocator/allocator_common.hpp

+8-6
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ using AllocRebind = typename std::allocator_traits<Alloc>::template rebind_trait
3131

3232
} // namespace allocator
3333

34-
// Builds the RCL default allocator for the C++ standard allocator.
35-
// This assumes that the user intent behind both allocators is the
36-
// same: Using system malloc for allocation.
37-
//
38-
// If you're using a custom allocator in ROS, you'll need to provide
39-
// your own overload for this function.
34+
/// Return the equivalent rcl_allocator_t for the C++ standard allocator.
35+
/**
36+
* This assumes that the user intent behind both allocators is the
37+
* same: Using system malloc for allocation.
38+
*
39+
* If you're using a custom allocator in ROS, you'll need to provide
40+
* your own overload for this function.
41+
*/
4042
template<typename T>
4143
rcl_allocator_t get_rcl_allocator(std::allocator<T> allocator)
4244
{

0 commit comments

Comments
 (0)