File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
rclcpp/include/rclcpp/allocator Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff 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+ */
4042template <typename T>
4143rcl_allocator_t get_rcl_allocator (std::allocator<T> allocator)
4244{
You can’t perform that action at this time.
0 commit comments