Luna::Path::erase

iterator erase(const_iterator first, const_iterator last)

Removes one range of name nodes from the path.

Parameters

  • in first

    The iterator to the first name node to be removed.

  • in last

    The iterator to the one-past-last name node to be removed.

Return value

Returns one iterator to the next name node of the removed name nodes when iterating name nodes.

Valid Usage

  • first must be either end() or one valid name node in the path.

  • If first != end(), [first, last) must specifies either one empty range (first == last) or one valid name node range of the path.

  • If first == end(), [first, last) must specifies one empty range (first == last).