Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::containers::BinaryTree::BT_OPT_NODUPLICATES Macro
C++
#define BT_OPT_NODUPLICATES 1

This option may be passed to extended CreateBinaryTree methods to disallow adding of duplicates. Otherwise duplicates will be added; they will be added to the side of the node with the same value that has less children. Trees are created by default without this option, allowing the addition of duplicates.

   
PTREEROOT = CreateBinaryTreeExtended( BT_OPT_NODUPLICATES, NULL, NULL DBG_SRC );
   
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!