Template:cpp/filesystem/directory caching note

Many low-level OS APIs for directory traversal retrieve file attributes along with the next directory entry. The constructors and the non-const member functions of std store these attributes, if any, in the pointed-to std without calling, which makes it possible to examine the attributes of the directory entries as they are being iterated over, without making additional system calls.