basic_path::append Method

Appends elements to the stored file name.

template<class InIt>
basic_path& append(
   InIt First,
   InIt Last
);

Parameters

  • First
    The first element to append to the stored file name.

  • Last
    The element that is immediately after the last element to append to the stored file name.

Return Value

*this after the append occurs.

Remarks

This method appends the elements in the range [First, Last) to the stored file name. The method ignores a leading double forward slash or backslash escape sequence.

Each backslash is converted to a slash before it is appended.

If the original stored file name does not end in a slash or a colon, and the first appended element is not a slash, this method appends a slash before it appends the remaining elements.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

basic_path Class

<filesystem>