std::ostreambuf_iterator::ostreambuf_iterator

ostreambuf_iterator( streambuf_type* buffer ); (1) ostreambuf_iterator( ostream_type& stream ); (2) 1) Constructs the iterator with the private streambuf_type* member set to buffer and the failed() bit set to false. The behavior is undefined if buffer is a null pointer. 2) Same as ostreambuf_iterator(stream.rdbuf()) Parameters stream - the output stream whose rdbuf() will be accessed by this iterator buffer - the output stream buffer to be accessed by this ite

std::ostreambuf_iterator::operator++

ostreambuf_iterator& operator++(); ostreambuf_iterator& operator++( int ); Does nothing. These operator overloads are provided to satisfy the requirements of OutputIterator. They make it possible for the expressions *iter++=value and *++iter=value to be used to output (insert) a value into the underlying stream. Parameters (none). Return value *this.

std::ostreambuf_iterator::failed

bool failed() const; Returns true if the iterator encountered the end-of-file condition, that is, if an earlier call to std::basic_streambuf::sputc (made by operator=) returned Traits::eof. Parameters (none). Return value true if this iterator has encountered the end-of-file condition on output, false otherwise. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Example

std::ostreambuf_iterator

Defined in header <iterator> template< class CharT, class Traits = std::char_traits<CharT> > class ostreambuf_iterator : public std::iterator<std::output_iterator_tag, void, void, void, void> (until C++17) template< class CharT, class Traits = std::char_traits<CharT> > class ostreambuf_iterator; (since C++17) std::ostreambuf_iterator is a single-pass OutputIterator that writes successive ch

std::operators (std::error_code)

Defined in header <system_error> bool operator==( const error_code& lhs, const error_code& rhs ); (1) (since C++11) bool operator!=( const error_code& lhs, const error_code& rhs ); (1) (since C++11) bool operator<( const error_code& lhs, const error_code& rhs ); (1) (since C++11) Compares two error code objects. 1) Compares lhs and rhs for equality. 2) Compares lhs and rhs for equality. 3) Checks whether lhs is less than rhs. Par

std::operator&lt;&lt;(std::error_code)

Defined in header <system_error> template< class CharT, class Traits > std::basic_ostream<CharT,Traits>& operator<<( basic_ostream<CharT,Traits>& os, const error_code& ec ); (since C++11) Performs stream output operation on error code ec. Equivalent to os << ec.category().name() << ':' << ec.value. Parameters os - output stream to insert data to ec - error code Return value os.

std::once_flag

Defined in header <mutex> class once_flag; (since C++11) The class std::once_flag is a helper structure for std::call_once. An object of type std::once_flag that is passed to multiple calls to std::call_once allows those calls to coordinate with each other such that only one of the calls will actually run to completion. std::once_flag is neither copyable nor movable. Member functions std::once_flag::once_flag constexpr once_flag(); Constructs an once_flag obje

std::num_put::put

Defined in header <locale> (1) public: iter_type put( iter_type out, std::ios_base& str, char_type fill, bool v ) const; iter_type put( iter_type out, std::ios_base& str, char_type fill, long v ) const; iter_type put( iter_type out, std::ios_base& str, char_type fill, long long v ) const; iter_type put( iter_type out, std::ios_base& str, char_type fill, unsigned long v ) const; iter_type put( iter_type out, std::ios_base& str, char_type fi

std::num_put::num_put

Defined in header <locale> explicit num_put( std::size_t refs = 0 ); Creates a std::num_put facet and forwards the starting reference count refs to the base class constructor, locale::facet::facet(). Parameters refs - starting reference count

std::num_put

Defined in header <locale> template< class CharT, class OutputIt = std::ostreambuf_iterator<CharT> > class num_put; Class std::num_put encapsulates the rules for formatting numeric values as strings. Specifically, the types bool, long, unsigned long, long long, unsigned long long, double, long double, void*, and of all types implicitly convertible to these (such as int or float) are supported. The standard formatting output operators (such as cout <&