std::experimental::ostream_joiner<DelimT,CharT,Traits>::operator= (3) - Linux Manuals
std::experimental::ostream_joiner<DelimT,CharT,Traits>::operator=: std::experimental::ostream_joiner<DelimT,CharT,Traits>::operator=
Command to display std::experimental::ostream_joiner<DelimT,CharT,Traits>::operator=
manual in Linux: $ man 3 std::experimental::ostream_joiner<DelimT,CharT,Traits>::operator=
NAME
std::experimental::ostream_joiner<DelimT,CharT,Traits>::operator= - std::experimental::ostream_joiner<DelimT,CharT,Traits>::operator=
Synopsis
template<class T> (1) (library fundamentals TS v2)
ostream_joiner& operator=(const T& value);
ostream_joiner& operator=(const ostream_joiner& other) = default; (2) (library fundamentals TS v2)
(implicitly declared)
ostream_joiner& operator=(ostream_joiner&& other) = default; (3) (library fundamentals TS 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.
Parameters
value - the object to to be written to the stream
other - the ostream_joiner object to be assigned to this object
Return value
*this.
Example
This section is incomplete
Reason: no example
Pages related to std::experimental::ostream_joiner<DelimT,CharT,Traits>::operator=
- std::experimental::ostream_joiner<DelimT,CharT,Traits>::operator++ (3) - std::experimental::ostream_joiner<DelimT,CharT,Traits>::operator++
- std::experimental::ostream_joiner<DelimT,CharT,Traits>::ostream_joiner (3) - std::experimental::ostream_joiner<DelimT,CharT,Traits>::ostream_joiner
- std::experimental::ostream_joiner (3) - std::experimental::ostream_joiner
- std::experimental::observer_ptr (3) - std::experimental::observer_ptr
- std::experimental::observer_ptr<W>::get (3) - std::experimental::observer_ptr<W>::get
- std::experimental::observer_ptr<W>::observer_ptr (3) - std::experimental::observer_ptr<W>::observer_ptr
- std::experimental::observer_ptr<W>::operator*, (3) - std::experimental::observer_ptr<W>::operator*,
- std::experimental::observer_ptr<W>::operator*,std::experimental::observer_ptr<W>::operator-> (3) - std::experimental::observer_ptr<W>::operator*,std::experimental::observer_ptr<W>::operator->
- std::experimental::observer_ptr<W>::operatorbool (3) - std::experimental::observer_ptr<W>::operatorbool
- std::experimental::observer_ptr<W>::operatorelement_type* (3) - std::experimental::observer_ptr<W>::operatorelement_type*
- std::experimental::observer_ptr<W>::release (3) - std::experimental::observer_ptr<W>::release
- std::experimental::observer_ptr<W>::reset (3) - std::experimental::observer_ptr<W>::reset
- std::experimental::observer_ptr<W>::swap (3) - std::experimental::observer_ptr<W>::swap
- std::experimental::optional (3) - std::experimental::optional
- std::experimental::optional<T>::emplace (3) - std::experimental::optional<T>::emplace
- std::experimental::optional<T>::operator->,std::experimental::optional<T>::operator* (3) - std::experimental::optional<T>::operator->,std::experimental::optional<T>::operator*
- std::experimental::optional<T>::operator= (3) - std::experimental::optional<T>::operator=
- std::experimental::optional<T>::operatorbool (3) - std::experimental::optional<T>::operatorbool
- std::experimental::optional<T>::optional (3) - std::experimental::optional<T>::optional
- std::experimental::optional<T>::swap (3) - std::experimental::optional<T>::swap
- std::experimental::optional<T>::value (3) - std::experimental::optional<T>::value
- std::experimental::optional<T>::value_or (3) - std::experimental::optional<T>::value_or
- std::experimental::optional<T>::~optional (3) - std::experimental::optional<T>::~optional
- std::experimental::overaligned_tag,std::experimental::overaligned (3) - std::experimental::overaligned_tag,std::experimental::overaligned