NuDB Logo

PrevUpHomeNext

erase_file (1 of 2 overloads)

Erase a file if it exists.

Synopsis
template<
    class File = native_file>
void
erase_file(
    path_type const& path,
    error_code& ec);
Description

This function attempts to erase the specified file. No error is generated if the file does not already exist.

Parameters

Name

Description

path

The path to the file to erase.

ec

Set to the error, if any occurred.

Template Parameters

Type

Description

File

A type meeting the requirements of File. If this type is unspecified, |9|native_file is used.


PrevUpHomeNext