GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::experimental::ostream_joiner::operator=(3) C++ Standard Libary std::experimental::ostream_joiner::operator=(3)

std::experimental::ostream_joiner::operator= - std::experimental::ostream_joiner::operator=


template<class T> (1) (library fundamentals TS
ostream_joiner& operator=(const T& value); v2)
ostream_joiner& operator=(const ostream_joiner& other) (library fundamentals TS
= default; (2) v2)
(implicitly declared)
ostream_joiner& operator=(ostream_joiner&& other) = (library fundamentals TS
default; (3) v2)
(implicitly declared)


1) First, if the private "first element" flag is false, insert the delimiter delim
into the output stream os associated with this iterator as if by os << delim;.


Then, unconditionally sets the "first element" flag to false, and insert value into
the output stream as if by os << value;.


Let out_stream, delim, and first_element denote the private stream pointer,
delimiter, and "first element" flag members respectively, then this function is
equivalent to


if (!first_element)
*out_stream << delim;
first_element = false;
*out_stream << value;
return *this;


2-3) Implicitly declared copy/move assignment operator that copy/move assigns the
private stream pointer, delimiter, and "first element" flag members.


value - the object to to be written to the stream
other - the ostream_joiner object to be assigned to this object


*this.


This section is incomplete
Reason: no example

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.