strstream

This header is part of the Input/Output library. Classes strstreambuf (deprecated) implements raw character array device (class) istrstream (deprecated) implements character array input operations (class) ostrstream (deprecated) implements character array output operations (class) strstream (deprecated) implements character array input/output operations (class) Synopsis namespace std { class strstreambuf; class istrstream; class ostrstream;

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::allocator::destroy

Defined in header <memory> void destroy( pointer p ); (until C++11) template< class U > void destroy( U* p ); (since C++11) Calls the destructor of the object pointed to by p. 1) Calls ((T*)p)->~T() 2) Calls p->~U() Parameters p - pointer to the object that is going to be destroyed Return value (none). See also destroy [static] destructs an object stored in the allocated storage (function template)

ostream

This header is part of the Input/output library. Classes basic_ostream wraps a given abstract device (std::basic_streambuf) and provides high-level output interface (class template) std::ostream basic_ostream<char>(typedef) std::wostream basic_ostream<wchar_t>(typedef) Functions operator<<(std::basic_ostream) inserts character data (function template) Manipulators ends outputs '\0' (function template) flush flushes the output stream

std::wcsspn

Defined in header <cwchar> size_t wcsspn( const wchar_t* dest, const wchar_t* src ); Returns the length of the maximum initial segment of the wide string pointed to by dest, that consists of only the characters found in wide string pointed to by src. Parameters dest - pointer to the null-terminated wide string to be analyzed src - pointer to the null-terminated wide string that contains the characters to search for Return value The length of the maximum

std::forward_list::clear

void clear(); (since C++11) Removes all elements from the container. Invalidates any references, pointers, or iterators referring to contained elements. May invalidate any past-the-end iterators. Parameters (none). Return value (none). Exceptions noexcept specification: noexcept Complexity Linear in the size of the container. clear is defined in terms of erase, which has linear complexity. (until C++11) complexity of clear is omitted (since C++11)(until C++14) clea

SIGTERM

Defined in header <csignal> #define SIGTERM /*implementation defined*/ #define SIGSEGV /*implementation defined*/ #define SIGINT /*implementation defined*/ #define SIGILL /*implementation defined*/ #define SIGABRT /*implementation defined*/ #define SIGFPE /*implementation defined*/ Each of the above macro constants expands to an integer constant expression with distinct values, which represent different signals sent to the program. Constant

std::forward_list::erase_after

iterator erase_after( const_iterator pos ); (1) (since C++11) iterator erase_after( const_iterator first, const_iterator last ); (2) (since C++11) Removes specified elements from the container. 1) Removes the element following pos. 2) Removes the elements in the range (first; last). Parameters pos - iterator to the element preceding the element to remove first, last - range of elements to remove Return value 1) Iterator to the element following the erased on

std::abs(int)

Defined in header <cstdlib> int abs( int n ); long abs( long n ); long long abs( long long n ); (since C++11) long labs( long n ); long long llabs( long long n ); (since C++11) Defined in header <cinttypes> std::intmax_t abs( std::intmax_t n ); (since C++11) std::intmax_t imaxabs( std::intmax_t n ); (since C++11) Computes the absolute value of an integer number. The behavior is undefined if the result cannot

std::forward_list::reverse

void reverse(); (since C++11) Reverses the order of the elements in the container. No references or iterators become invalidated. Parameters (none). Return value (none). Example #include <iostream> #include <forward_list> std::ostream& operator<<(std::ostream& ostr, const std::forward_list<int>& list) { for (auto &i : list) { ostr << " " << i; } return ostr; } int main() { std::forward_list<int