Export (0) Print
Expand All

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>()
);

Pval

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

Pbase

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

Show:
© 2014 Microsoft