From Jason Turner

[fs.class.directory.entry.general]

Diff to HTML by rtfpessoa

tmp/tmpsfo8t3g1/{from.md → to.md} RENAMED
@@ -63,12 +63,11 @@ namespace std::filesystem {
63
  template<class charT, class traits>
64
  friend basic_ostream<charT, traits>&
65
  operator<<(basic_ostream<charT, traits>& os, const directory_entry& d);
66
 
67
  private:
68
- filesystem::path pathobject; // exposition only
69
- friend class directory_iterator; // exposition only
70
  };
71
  }
72
  ```
73
 
74
  A `directory_entry` object stores a `path` object and may store
@@ -79,16 +78,13 @@ Implementations should store such additional file attributes during
79
  directory iteration if their values are available and storing the values
80
  would allow the implementation to eliminate file system accesses by
81
  `directory_entry` observer functions [[fs.op.funcs]]. Such stored file
82
  attribute values are said to be *cached*.
83
 
84
- [*Note 1*: For purposes of exposition, class `directory_iterator`
85
- [[fs.class.directory.iterator]] is shown above as a friend of class
86
- `directory_entry`. Friendship allows the `directory_iterator`
87
- implementation to cache already available attribute values directly into
88
- a `directory_entry` object without the cost of an unneeded call to
89
- `refresh()`. — *end note*]
90
 
91
  [*Example 1*:
92
 
93
  ``` cpp
94
  using namespace std::filesystem;
 
63
  template<class charT, class traits>
64
  friend basic_ostream<charT, traits>&
65
  operator<<(basic_ostream<charT, traits>& os, const directory_entry& d);
66
 
67
  private:
68
+ filesystem::path path-object; // exposition only
 
69
  };
70
  }
71
  ```
72
 
73
  A `directory_entry` object stores a `path` object and may store
 
78
  directory iteration if their values are available and storing the values
79
  would allow the implementation to eliminate file system accesses by
80
  `directory_entry` observer functions [[fs.op.funcs]]. Such stored file
81
  attribute values are said to be *cached*.
82
 
83
+ [*Note 1*: `directory_iterator` can cache already available attribute
84
+ values directly into a `directory_entry` object without the cost of a
85
+ call to `refresh()`. *end note*]
 
 
 
86
 
87
  [*Example 1*:
88
 
89
  ``` cpp
90
  using namespace std::filesystem;