Skip to content

Remove friend class from the library wording #6427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions source/containers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9266,7 +9266,6 @@

// bit reference
class @\libmember{reference}{vector<bool>}@ {
friend class vector;
constexpr reference() noexcept;

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

class value_compare {
friend class map;
protected:
Compare comp;
value_compare(Compare c) : comp(c) {}
Expand Down Expand Up @@ -11117,7 +11115,6 @@
using node_type = @\unspec@;

class value_compare {
friend class multimap;
protected:
Compare comp;
value_compare(Compare c) : comp(c) { }
Expand Down
8 changes: 1 addition & 7 deletions source/iostreams.tex
Original file line number Diff line number Diff line change
Expand Up @@ -16096,7 +16096,6 @@

private:
filesystem::path pathobject; // \expos
friend class directory_iterator; // \expos
};
}
\end{codeblock}
Expand All @@ -16115,10 +16114,7 @@

\pnum
\begin{note}
For purposes of exposition,
class \tcode{directory_iterator}\iref{fs.class.directory.iterator}
is shown above as a friend of class \tcode{directory_entry}.
Friendship allows the \tcode{directory_iterator} implementation to cache
\tcode{directory_iterator} can cache
already available attribute values
directly into a \tcode{directory_entry} object
without the cost of an unneeded call to \tcode{refresh()}.
Expand Down Expand Up @@ -16620,8 +16616,6 @@
any \tcode{directory_entry} \tcode{refresh} function.
\begin{note}
The exact mechanism for storing cached attribute values is not exposed to users.
For exposition, class \tcode{directory_iterator} is shown in \ref{fs.class.directory.entry}
as a friend of class \tcode{directory_entry}.
\end{note}

\pnum
Expand Down
3 changes: 0 additions & 3 deletions source/utilities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9799,7 +9799,6 @@
public:
// bit reference
class reference {
friend class bitset;
constexpr reference() noexcept;

public:
Expand Down Expand Up @@ -18605,8 +18604,6 @@

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

friend class basic_format_arg<Context>; // \expos

public:
void format(basic_format_parse_context<char_type>&, Context& ctx) const;
};
Expand Down
Loading