Guest User

Untitled

a guest
Jun 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1.     auto findVertex = [&] (const Vertex &vert) -> unsigned {
  2.         unsigned i = 0;
  3.         for each (const Vertex &v in vertices)
  4.         {
  5.             if (v == vert)
  6.                 return i;
  7.             ++i;
  8.         }
  9.         return -1;
  10.     };
Add Comment
Please, Sign In to add comment