utility

This header is part of the general utility library. Includes <initializer_list>(C++11) Namespaces rel_ops Provide automatic comparison operators Defined in namespace std::rel_ops operator!=operator>operator<=operator>= automatically generates comparison operators based on user-defined operator== and operator< (function template) Functions swap swaps the values of two objects (function template) exchange (C++14) replaces the argument with a

std::multimap::rbegin

reverse_iterator rbegin(); const_reverse_iterator rbegin() const; const_reverse_iterator crbegin() const; (since C++11) Returns a reverse iterator to the first element of the reversed container. It corresponds to the last element of the non-reversed container. Parameters (none). Return value Reverse iterator to the first element. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. See also rend crend r

std::strstreambuf::underflow

protected: virtual streambuf<char>* setbuf(char* s, std::streamsize n); If s is a null pointer and n is zero, this function has no effect. Otherwise, the effect is implementation-defined: some implementations do nothing, while some implementations deallocate the dynamic member array used as the buffer and begin using the user-supplied character array of size n, whose first element is pointed to by s. This function is protected virtual, it may only be called through pubsetbuf() or

std::swap(std::basic_istringstream)

template< class CharT, class Traits, class Alloc > void swap( std::basic_istringstream<CharT,Traits,Alloc>& lhs, std::basic_istringstream<CharT,Traits,Alloc>& rhs ); Specializes the std::swap algorithm for std::basic_istringstream. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs). Parameters lhs, rhs - streams whose state to swap Return value (none). Exceptions (none). Example See also swap (C++11

std::remove

Defined in header <cstdio> int remove( const char* fname ); Deletes the file identified by character string pointed to by fname. If the file is currently open by the current or another process, the behavior of this function is implementation-defined (in particular, POSIX systems unlink the file name, although the file system space is not reclaimed even if this was the last hardlink to the file until the last running process closes the file, Windows does not allow the file t

std::_Exit

Defined in header <cstdlib> [[noreturn]] void _Exit( int exit_code ); (since C++11) Causes normal program termination to occur without completely cleaning the resources. Destructors of variables with automatic, thread local and static storage durations are not called. Functions passed to std::at_quick_exit() or std::atexit() are not called. Whether open resources such as files are closed is implementation defined. If exit_code is EXIT_FAILURE, an implementation-defined stat

std::getchar

Defined in header <cstdio> int getchar(); Reads the next character from stdin. Equivalent to std::getc(stdin). Parameters (none). Return value The obtained character on success or EOF on failure. If the failure has been caused by end of file condition, additionally sets the eof indicator (see feof()) on stdin. If the failure has been caused by some other error, sets the error indicator (see ferror()) on stdin. See also fgetcgetc gets a character from a file str

std::multimap::size

size_type size() const; Returns the number of elements in the container, i.e. std::distance(begin(), end()). Parameters (none). Return value The number of elements in the container. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. Example The following code uses size to display the number of elements in a std::multimap: #include <map> #include <iostream> int main() { std::multimap<int,char> n

std::multimap::value_compare

class value_compare; std::multimap::value_compare is a function object that compares objects of type std::multimap::value_type (key-value pairs) by comparing of the first components of the pairs. Member types Type Definition result_type bool first_argument_type value_type second_argument_type value_type Protected member objects Compare comp the stored comparator (protected member object) Member functions (constructor) constructs a new value_compare o

std::fputws

Defined in header <cwchar> int fputws( const wchar_t* str, std::FILE* stream ); Writes given null-terminated wide string to the given output stream. Parameters str - null-terminated wide string to be written stream - output stream Return value Non-negative integer on success, WEOF on failure. See also fputs writes a character string to a file stream (function) wprintffwprintfswprintf prints formatted wide character output to stdout, a file st