Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::containers::BinaryTree::FindInBinaryTree Function
C++
__cdecl TYPELIB_PROC POINTER FindInBinaryTree(PTREEROOT root, PTRSZVAL key);

user data POINTER if found, else NULL.

Search in a binary tree for the specified key.

   
PTREEROOT tree;
   
void f( void )
{
   POINTER mydata = FindInBinaryTree( tree, 5 );
   if( mydata )
   {
       // found '5' as the key in the tree
   }
}
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!