funzione create_symlink
Crea un collegamento di token a un file esistente.
template<class Path1, class Path2>
inline void create_sym_link(
const Path1& Pval1,
const Path2& Pval2
);
template<class Path1, class Path2>
inline error_code create_sym_link(
const Path1& Pval1,
const Path2& Pval2,
error_code& Code
);
Parametri
Pval1
Un oggetto di Path che rappresenta il nome di un file esistente.Path può essere basic_path o un tipo derivato da basic_path.Pval2
Un oggetto di Path che contiene il nome file di collegamento token.Code
Un oggetto di error_code.
Valore restituito
La seconda funzione restituisce Code.
Note
Un collegamento di token è un oggetto di tipo file system che indica un altro oggetto di file system.
Se il collegamento token non può essere creato, la prima funzione genera basic_filesystem_error.
La seconda funzione assegna a Code tutto il codice di errore associato all'operazione.
Requisiti
Filesystem diIntestazione:
Spazio dei nomi: std::tr2::sys