Skip to content

Commit c001805

Browse files
[lib] Remove friend class X (#6427)
Friendship between library classes is considered an implementation detail.
1 parent 21e477f commit c001805

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

source/containers.tex

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9266,7 +9266,6 @@
92669266

92679267
// bit reference
92689268
class @\libmember{reference}{vector<bool>}@ {
9269-
friend class vector;
92709269
constexpr reference() noexcept;
92719270

92729271
public:
@@ -10380,7 +10379,6 @@
1038010379
using insert_return_type = @\placeholdernc{insert-return-type}@<iterator, node_type>;
1038110380

1038210381
class value_compare {
10383-
friend class map;
1038410382
protected:
1038510383
Compare comp;
1038610384
value_compare(Compare c) : comp(c) {}
@@ -11117,7 +11115,6 @@
1111711115
using node_type = @\unspec@;
1111811116

1111911117
class value_compare {
11120-
friend class multimap;
1112111118
protected:
1112211119
Compare comp;
1112311120
value_compare(Compare c) : comp(c) { }

source/iostreams.tex

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16096,7 +16096,6 @@
1609616096

1609716097
private:
1609816098
filesystem::path pathobject; // \expos
16099-
friend class directory_iterator; // \expos
1610016099
};
1610116100
}
1610216101
\end{codeblock}
@@ -16115,10 +16114,7 @@
1611516114

1611616115
\pnum
1611716116
\begin{note}
16118-
For purposes of exposition,
16119-
class \tcode{directory_iterator}\iref{fs.class.directory.iterator}
16120-
is shown above as a friend of class \tcode{directory_entry}.
16121-
Friendship allows the \tcode{directory_iterator} implementation to cache
16117+
\tcode{directory_iterator} can cache
1612216118
already available attribute values
1612316119
directly into a \tcode{directory_entry} object
1612416120
without the cost of an unneeded call to \tcode{refresh()}.
@@ -16620,8 +16616,6 @@
1662016616
any \tcode{directory_entry} \tcode{refresh} function.
1662116617
\begin{note}
1662216618
The exact mechanism for storing cached attribute values is not exposed to users.
16623-
For exposition, class \tcode{directory_iterator} is shown in \ref{fs.class.directory.entry}
16624-
as a friend of class \tcode{directory_entry}.
1662516619
\end{note}
1662616620

1662716621
\pnum

source/utilities.tex

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9799,7 +9799,6 @@
97999799
public:
98009800
// bit reference
98019801
class reference {
9802-
friend class bitset;
98039802
constexpr reference() noexcept;
98049803

98059804
public:
@@ -18605,8 +18604,6 @@
1860518604

1860618605
template<class T> explicit handle(T& val) noexcept; // \expos
1860718606

18608-
friend class basic_format_arg<Context>; // \expos
18609-
1861018607
public:
1861118608
void format(basic_format_parse_context<char_type>&, Context& ctx) const;
1861218609
};

0 commit comments

Comments
 (0)