Doxygen

template<class _CharT , class _Alloc >
void rope< _CharT, _Alloc >::_S_add_to_forest ( _RopeRep __r,
_RopeRep **  __forest 
) [static, protected]

Definition at line 1061 of file _rope.c.

{
    if (__r -> _M_is_balanced) {
      _S_add_leaf_to_forest(__r, __forest);
      return;
    }
    _STLP_ASSERT(__r->_M_tag == _RopeRep::_S_concat)
    {
      _RopeConcatenation* __c = (_RopeConcatenation*)__r;

      _S_add_to_forest(__c->_M_left, __forest);
      _S_add_to_forest(__c->_M_right, __forest);
    }
}