We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

complete Function

Creates a complete path, if possible, from specified Path values.

template<class Path>
inline Path complete(
   const Path& Pval,
   const Path& Pbase = initial_path<Path>()


An object of type Path. Path can be either a basic_path or a type that's derived from basic_path.


An object of type Path. By default, the value is the current working directory on program startup.

If Pval has a root name, the function returns Pval.

Otherwise, if Pval has a root directory, the function returns Pbase.root_name / Pval.

Otherwise, the function returns Pbase / Pval.

Header: filesystem

Namespace: std::tr2::sys