다음을 통해 공유


extension Function

Retrieves the file name extension of a specified file name.

template<class Path>
inline typename Path::string_type extension(
   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

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

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

<filesystem>

basic_path::extension Method

Other Resources

C++ Standard Library Header Files