Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

basename Function

Returns the stem of a specified path.

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

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

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

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

Header: filesystem

Namespace: std::tr2::sys

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.