std::filesystem::remove: removing one entry
std::filesystem::remove removes one file or empty directory and reports whether an existing entry was actually removed.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
std::filesystem::remove removes one file or empty directory and reports whether an existing entry was actually removed.
std::filesystem::rename moves an entry from old_p to new_p with POSIX rename semantics and does not copy its contents.
std::filesystem::status reads the file_status of the object named by a path and follows symbolic links encountered during resolution.
std::fill assigns value to every element in the half-open iterator range [first, last) and returns void in C++23.
std::find searches [first, last) from the beginning and returns the first iterator for which *i == value, or last.
std::find_if returns the first iterator in [first, last) for which pred(*i) is not false, or last.
std::find_if_not returns the first iterator in [first, last) for which pred(*i) is false, or last.
std::fixed selects fixed-point formatting for floating-point values in a stream. Together with std::setprecision(n), it specifies the number of digits after the decimal separator, and the setting remains active for subsequent operations.
std::for_each invokes a function for every element in [first, last); the sequential form preserves order and returns the function object.
std::format creates a new std::string from a checked format pattern and its arguments.
std::format_error, declared in <format>, reports errors from the formatting library. Learn the distinction between a runtime exception and compile-time rejection of an invalid format string, and how to catch this exception safely.
A std::formatter<T, charT> specialization defines how a format specification is parsed and how a T value is written.
std::format_to writes formatted characters through an output iterator and returns the iterator past the last write.
std::forward<T> restores the value category recorded by forwarding-reference deduction.
std::forward_list stores a one-way chain and offers constant-time operations after a known predecessor.
std::from_chars parses a number in [first, last), returning the match end and an error code without exceptions.
std::fstream connects character input and output to a named file while retaining formatting and stream-error state.
std::function stores any copyable callable matching a selected signature and invokes it through one uniform interface.
std::future is a movable, non-copyable handle to one shared state containing either a value or an exception.
std::future_status is a scoped enumeration from <future>, returned by wait_for() and wait_until(). It distinguishes a ready result, an expired timeout, and deferred execution. The status itself neither retrieves the value nor tells you whether the computation completed without an exception.
std::generate calls a nullary generator exactly once for every position in a range and assigns each successive result.
C++23 std::generator turns a co_yield coroutine into a movable, single-pass range that produces elements on demand.
std::get selects an element by constant index or unique type and returns a reference that preserves value category and constness.
std::get_if returns a pointer to the requested active std::variant alternative or nullptr without throwing.