Skip to content
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

[span.streams] Move non-member swaps to header synopsis #5366

Merged
merged 1 commit into from
Mar 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 12 additions & 12 deletions source/iostreams.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9330,24 +9330,36 @@
template<class charT, class traits = char_traits<charT>>
class basic_spanbuf;

template<class charT, class traits>
void swap(basic_spanbuf<charT, traits>& x, basic_spanbuf<charT, traits>& y);

using spanbuf = basic_spanbuf<char>;
using wspanbuf = basic_spanbuf<wchar_t>;

template<class charT, class traits = char_traits<charT>>
class basic_ispanstream;

template<class charT, class traits>
void swap(basic_ispanstream<charT, traits>& x, basic_ispanstream<charT, traits>& y);

using ispanstream = basic_ispanstream<char>;
using wispanstream = basic_ispanstream<wchar_t>;

template<class charT, class traits = char_traits<charT>>
class basic_ospanstream;

template<class charT, class traits>
void swap(basic_ospanstream<charT, traits>& x, basic_ospanstream<charT, traits>& y);

using ospanstream = basic_ospanstream<char>;
using wospanstream = basic_ospanstream<wchar_t>;

template<class charT, class traits = char_traits<charT>>
class basic_spanstream;

template<class charT, class traits>
void swap(basic_spanstream<charT, traits>& x, basic_spanstream<charT, traits>& y);

using spanstream = basic_spanstream<char>;
using wspanstream = basic_spanstream<wchar_t>;
}
Expand Down Expand Up @@ -9399,9 +9411,6 @@
ios_base::openmode @\exposid{mode}@; // \expos
std::span<charT> @\exposid{buf}@; // \expos
};

template<class charT, class traits>
void swap(basic_spanbuf<charT, traits>& x, basic_spanbuf<charT, traits>& y);
}
\end{codeblock}

Expand Down Expand Up @@ -9722,9 +9731,6 @@
private:
basic_spanbuf<charT, traits> sb; // \expos
};

template<class charT, class traits>
void swap(basic_ispanstream<charT, traits>& x, basic_ispanstream<charT, traits>& y);
}
\end{codeblock}

Expand Down Expand Up @@ -9910,9 +9916,6 @@
private:
basic_spanbuf<charT, traits> sb; // \expos
};

template<class charT, class traits>
void swap(basic_ospanstream<charT, traits>& x, basic_ospanstream<charT, traits>& y);
}
\end{codeblock}

Expand Down Expand Up @@ -10051,9 +10054,6 @@
private:
basic_spanbuf<charT, traits> sb; // \expos
};

template<class charT, class traits>
void swap(basic_spanstream<charT, traits>& x, basic_spanstream<charT, traits>& y);
}
\end{codeblock}

Expand Down