basic_path::branch_path Method

Retrieves the parent path of the basic_path object.

basic_path branch_path() const;

Return Value

A basic_path object that contains the stored file name up to, but not including, its final component. Extra slashes are removed.

Remarks

A file name component is one of these:

  • A prefix that consists of all elements up to and including the first colon.

  • A root that consists of a single slash.

  • A slash-delimited path element.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

basic_path Class

<filesystem>