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