BloombergLP::bslalg::RbTreeUtil::isRightChild

Return whether node is the right child of its parent.

Synopsis

Declared in <bslalg_rbtreeutil.h>

static
bool
isRightChild(RbTreeNode const* node);

Description

Return true if the specified node is the right child of its parent, and false otherwise. The behavior is undefined unless 0 != node->parent().

Return Value

true if node is the right child of its parent

Parameters

NameDescription
nodenode whose parent-child relationship is tested