exists Funciones
Especifica si existe un archivo.
inline bool exists(
file_status Stat
);
template<class Path>
inline bool exists(
const Path& Pval
);
Parámetros
Stat
Un objeto file_status .Pval
Un objeto Path.Path puede ser basic_path o un tipo derivado basic_path.
Valor devuelto
La primera función devuelve status_known(Stat) && Stat.type() != file_not_found.
La segunda función devuelve exists(status(Pval)).
Comentarios
Un file_status representa un archivo existente si se conoce el file_type subyacente
Requisitos
El sistema de archivosEncabezado:
Espacio de nombres: std::tr2::sys