Xport Interface: element::push_front

Inserts a markup object or PCDATA at the beginning of the called element.

virtual markup::iterator element::push_front(1st Variety
  const markup& mkup
);
virtual markup::iterator element::push_front(2nd Variety
  const std::string& pcdat
);

Parameters

mkup

A markup derived object, which can be one of the following, an element, pcdata, comment, or procinstr.

pcdat

A string argument which represents PCDATA to insert as content.

Returns

Returns a markup iterator which points to the inserted markup object.

Remarks

The first variety is equivalent to the operation element::insert(markup::begin(), markup& mkup). The second variety is equivalent to the operation element::insert(markup::begin(), std::string& pcdat). This operation provides a handy way to insert markup at the beginning of the called element, rather than at the end of the called element, which is more customary.

Complexity

logarithmic

Example

Work Time Studio

Datasoft Solutions is proud to present their landmark product, Work Time Studio. Utilizing the tree container library, Work Time Studio provides unparalleled features in personal time, project and task management software. If you're looking for a way to increase your productivity, visit Work Time Studio's product website, and start being more productive today.