set_user_pointer(void *p) const;
/**
- * Reset the user pointer to a @p nullptr pointer. See
+ * Reset the user pointer to `nullptr`. See
* @ref GlossUserData
* for more information.
*/
/**
* Access the value of the user pointer. It is in the responsibility of the
- * user to make sure that the pointer points to something useful. You should
- * use the new style cast operator to maintain a minimum of type safety,
- * e.g.
+ * user to make sure that the pointer points to something useful and always
+ * requires casting to a known type, e.g.,
*
- * @note User pointers and user indices are mutually exclusive. Therefore,
- * you can only use one of them, unless you call
- * Triangulation::clear_user_data() in between. <tt>A
- * *a=static_cast<A*>(cell->user_pointer());</tt>.
+ * @code
+ * auto *a = static_cast<A*>(cell->user_pointer());
+ * @endcode
+ *
+ * @note User pointers and user indices are mutually exclusive. Therefore, you
+ * can only use one of them, unless you call Triangulation::clear_user_data()
+ * in between.
*
* See
* @ref GlossUserData
set_user_pointer(void *p) const;
/**
- * Reset the user pointer to a @p nullptr pointer. See
+ * Reset the user pointer to `nullptr`. See
* @ref GlossUserData
* for more information.
*/