\( % Arcus cosine. \def\acos{\cos^{-1}} % Vector projection. \def\projection#1#2{{proj_{#1}\left(#2\right)}} % Vector rejection. \def\rejection#1#2{{rej_{#1}\left(#2\right)}} % Norm. \def\norm#1{{\left\|#1\right\|}} % Cross product. \def\cross#1#2{\mathit{cross}\left(#1,#2\right)} % Dot product. \def\dot#1#2{{#1 \cdot #2}} % Magnitude. \def\mag#1{{\left|#1\right}} \def\group#1{\left(#1\right)}} \def\sbgrp#1{\left\{#1\right\}} \)

Ring1_Collection_RemovedCallback

The type of a "removed" callback function for collections.

typedef void (Ring1_Collection_RemovedCallback)(void* element);

A function of this type can be associated with a pointer collection. The function is invoked before a value is added to a pointer collection. A pointer to the removed value is passed to the function as its single argument. A "removed" callback function must not mutate the collection it is associated with. One can safely define a "removed" callback with a more specialized pointer type than void.

Parameter variables

element
A pointer to the value which was removed.