Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. __device__ void clear(Collision **head, int i){
  2.         Collision **tracer = head; //start at the first element
  3.         while( *tracer ){
  4.                 if( (*tracer)->i == i ){
  5.                         *tracer = (*tracer)->next; //remove this element
  6.                 }else{
  7.                         tracer = &(*tracer)->next; //continue through the list
  8.                 }
  9.         }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement