basic_path::begin Method

Specifies the first component of the stored file name.

iterator begin() const;

Return Value

A filename iterator that specifies the first component of the stored file name.

Remarks

The filename iterator that's returned by begin designates the first present component of the following file name sequence.

  • The prefix

  • The root

  • The path elements, in order

The following conditions apply to a file name iterator X.

  • X == end() indicates the end of the sequence of components.

  • *X returns a string that matches the current component.

  • ++X designates the next component in the sequence, if present.

  • --X designates the preceding component in the sequence, if present.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

basic_path Class

<filesystem>

basic_path::end Method