system_complete Function

Converts a given file name to a complete file name, if possible.

template<class Path>
inline Path system_complete(
   const Path& Pval
);

Parameters

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

Return Value

If Pval is complete, the function returns Pval.

Otherwise, it returns complete(Pval, current_path<Path>()).

Remarks

A file name is complete when it has a root name and a root directory.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

<filesystem>

basic_path::is_complete Method

complete Function

Other Resources

C++ Standard Library Header Files