Share via


stem Function

Returns the stem of a specified path.

template<class Path>
inline typename Path::string_type stem(
   const Path& Pval
);

Parameters

  • Pval
    A Path object. Path can be either a basic_path or a type that is derived from basic_path.

Return Value

A Path object that contains the stem of the specified path.

Remarks

The stem of a path is the substring of the leaf up to but not including the rightmost dot.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

<filesystem>

basic_path::stem Method

Other Resources

Header Files