Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

extension Function

Retrieves the file name extension of a specified file name.

template<class Path>
inline typename Path::string_type extension(
   const Path& Pval


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

The file name extension of the file name that is stored in Pval.

Header: filesystem

Namespace: std::tr2::sys

© 2015 Microsoft