C++17 - The Complete Guide by Nicolai M. Josuttis

C++17 - The Complete Guide by Nicolai M. Josuttis

Author:Nicolai M. Josuttis
Language: eng
Format: mobi, epub, pdf
Publisher: leanpub.com
Published: 2017-12-14T16:00:00+00:00


20.1.4 Dealing with Filesystems Using Parallel Algorithms

See dirsize.cpp for another example using parallel algorithms to accumulate the size of all regular files in a directory tree.

20.2 Principles and Terminology

Before discussing the details of the filesystem library, we have to introduce a couple of design principles and some terminology. This is necessary because the standard covers different operating systems and maps them to a common API.

20.2.1 General Portability Disclaimer

The C++ Standard does not merely standardize what all possible operating systems have in common for their file systems; in many cases, the C++ Standard follows POSIX standards and requests that implementations follow POSIX as closely as possible. As long as it is reasonable, the behavior should still be there, but with some limitations. If no reasonable behavior is possible, an implementation shall report an error. Possible examples for such errors are:

Particular characters are not valid to be used as file names

File system elements that are not supported are created (e.g., symbolic links)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.