Files
2025-10-25 03:02:53 +03:00

35 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[ostream.rvalue]
# 31 Input/output library [[input.output]](./#input.output)
## 31.7 Formatting and manipulators [[iostream.format]](iostream.format#ostream.rvalue)
### 31.7.6 Output streams [[output.streams]](output.streams#ostream.rvalue)
#### 31.7.6.6 Rvalue stream insertion [ostream.rvalue]
[🔗](#lib:operator%3c%3c,basic_ostream)
`template<class Ostream, class T>
Ostream&& operator<<(Ostream&& os, const T& x);
`
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L7174)
*Constraints*: The expression os << x is well-formed
when treated as an unevaluated operand andOstream is publicly and unambiguously derived from ios_base[.](#1.sentence-1)
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L7180)
*Effects*: As if by: os << x;
[3](#3)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L7184)
*Returns*: std::move(os)[.](#3.sentence-1)