A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://timsong-cpp.github.io/cppwp/n4659/fs.op.absolute below:

[fs.op.absolute]

30 Input/output library [input.output] 30.10 File systems [filesystems] 30.10.34 Filesystem operation functions [fs.op.funcs] 30.10.34.1 Absolute [fs.op.absolute]

path absolute(const path& p); path absolute(const path& p, error_code& ec);

Effects: Composes an absolute path referencing the same file system location as p according to the operating system ([fs.conform.os]).

Returns: The composed path. The signature with argument ec returns path() if an error occurs.

[Note: For the returned path, rp, rp.is_­absolute() is true unless an error occurs. end note]

[Note: To resolve symlinks, or perform other sanitization which might require queries to secondary storage, such as hard disks, consider canonical ([fs.op.canonical]). end note]

[Note: Implementations are strongly encouraged to not query secondary storage, and not consider !exists(p) an error. end note]

[Example: For POSIX-based operating systems, absolute(p) is simply current_­path()/p. For Windows-based operating systems, absolute might have the same semantics as GetFullPathNameW. end example]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4