Share via


basic_path::extension Method

Returns the extension of the stored file name, if it exists.

string_type extension() const;

Return Value

The substring of leaf that begins with the rightmost dot, or an empty string if no such substring exists.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

basic_path Class

<filesystem>