cinttypes

This header was originally in the C standard library as <inttypes.h>. Provides conversions from C byte and wide strings to std::intmax_t and std::uintmax_t, overloads some math functions for std::intmax_t and provide C style input/output format macros for the types declared in <cstdint>. Includes <cstdint> Types imaxdiv_t (C++11) structure type, return of the std::imaxdiv function (typedef) Functions abs(std::intmax_t)imaxabs (C++11)(C++11) computes

cerrno

This header was originally in the C standard library as <errno.h>. This header is part of the error handling library. Macros errno macro which expands to POSIX-compatible thread-local error number variable(macro variable) E2BIG (C++11) Argument list too long (macro constant) EACCES (C++11) Permission denied (macro constant) EADDRINUSE (C++11) Address in use (macro constant) EADDRNOTAVAIL (C++11) Address not available (macro constant) EAFNOSUPPORT (C++11)

std::unordered_map::bucket_size

size_type bucket_size( size_type n ) const; (since C++11) Returns the number of elements in the bucket with index n. Parameters n - the index of the bucket to examine Return value The number of elements in the bucket n. Complexity Constant. See also bucket_count returns the number of buckets (public member function)

std::strstream::str

char* str(); Returns the pointer to the beginning of the buffer, after freezing it. Effectively calls rdbuf()->str(). Notes After a call to str(), dynamic streams become frozen. A call to freeze(false) is required before exiting the scope in which this strstream object was created. otherwise the destructor will leak memory. Also, additional output to a frozen stream may be truncated once it reaches the end of the allocated buffer. Parameters (none). Return value Pointer to th

std::strstream::pcount

int pcount() const; Returns the number of characters that were output in the put area of the associated std::strstreambuf. Effectively calls rdbuf()->pcount(). Parameters (none). Return value The number of characters in the put area, or zero if nothing was output. Example #include <strstream> #include <iostream> int main() { std::strstream dyn; // dynamically-allocated output buffer dyn << "Test: " << 1.23; std::cout << "The size

std::ios_base::pword

void*& pword( int index ); First, allocates or resizes the private storage (dynamic array of void* or another indexable data structure) sufficiently to make index a valid index, then returns a reference to the void* element of the private storage with the index index. The reference may be invalidated by any operation on this ios_base object, including another call to pword(), but the stored values are retained, so that reading from pword(index) with the same index later will produce

std::swap(std::map)

template< class Key, class T, class Compare, class Alloc > void swap( map<Key,T,Compare,Alloc>& lhs, map<Key,T,Compare,Alloc>& rhs ); Specializes the std::swap algorithm for std::map. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs). Parameters lhs, rhs - containers whose contents to swap Return value (none). Complexity Constant. Exceptions noexcept specification: noexcept(noexcept(lhs.swap(rhs))) (since C++17) See a

std::swap(std::list)

template< class T, class Alloc > void swap( list<T,Alloc>& lhs, list<T,Alloc>& rhs ); Specializes the std::swap algorithm for std::list. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs). Parameters lhs, rhs - containers whose contents to swap Return value (none). Complexity Constant. Exceptions noexcept specification: noexcept(noexcept(lhs.swap(rhs))) (since C++17) See also swap swaps the contents (public member

std::allocate_shared

Defined in header <memory> template< class T, class Alloc, class... Args > shared_ptr<T> allocate_shared( const Alloc& alloc, Args... args ); (since C++11) Constructs an object of type T and wraps it in a std::shared_ptr using args as the parameter list for the constructor of T. All memory allocation is done using a copy of alloc, which satisfies the Allocator requirements. The copy constructor and the destructor of Alloc must not throw exceptions. Paramet

std::multiset::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