Array declaration

Declares an object of array type. Syntax An array declaration is any simple declaration whose declarator has the form. noptr-declarator [ constexpr(optional) ] attr(optional) (1) noptr-declarator - any valid declarator, but if it begins with *, &, or &&, it has to be surrounded by parentheses. attr(C++11) - optional list of attributes constexpr - an integral constant expression (until C++14)a converted constant expression of type std::size_t (since C++14)

std::basic_regex::swap

void swap( basic_regex& other ); (since C++11) Exchanges the contents of two regular expressions. Parameters other - the regular expression to swap with Return value (none). Exceptions noexcept specification: noexcept Example See also std::swap(std::basic_regex) (C++11) specializes the std::swap algorithm (function template)

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::basic_streambuf::eback

char_type* eback() const; (1) char_type* gptr() const; (2) char_type* egptr() const; (3) Returns pointers defining the get area. 1) Returns the pointer to the beginning of the get area. 2) Returns the pointer to the current character (get pointer) in the get area. 3) Returns the pointer to the end of the get area. Parameters (none). Return value 1) The pointer to the beginning of the get area. 2) The pointer to the current character (get pointer) in the get area. 3) Th

iomanip

This header is part of the Input/output manipulators library. Definitions resetiosflags clears the specified ios_base flags (function) setiosflags sets the specified ios_base flags (function) setbase changes the base used for integer I/O (function) setfill changes the fill character (function template) setprecision changes floating-point precision (function) setw changes the width of the next input/output field (function) get_money (C++11) parses a monetar

std::basic_fstream::open

void open( const char *filename, ios_base::openmode mode = ios_base::in|ios_base::out ); (1) void open( const std::string &filename, ios_base::openmode mode = ios_base::in|ios_base::out ); (2) (since C++11) Opens and associates the file with name filename with the file stream. Calls setstate(failbit) on failure. Calls clear() on success. (since C++11) 1) Effectively calls rdbuf()->open(filename, mode). (see std::bas

std::multimap::clear

void clear(); 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 (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Linear in the size of the container. See also erase erases elements (public member function)

std::shared_ptr::use_count

long use_count() const; Returns the number of different shared_ptr instances (this included) managing the current object. If there is no managed object, ​0​ is returned. Parameters (none). Return value the number of shared_ptr instances managing the current object or ​0​ if there is no managed object. Exceptions noexcept specification: noexcept Example #include <memory> #include <iostream> void fun(std::shared_ptr<int> sp) { std::cout << "

shared_mutex

This header is part of the thread support library. Classes shared_mutex (C++17) provides shared mutual exclusion facility (class) shared_timed_mutex (C++14) provides shared mutual exclusion facility (class) shared_lock (C++14) implements movable shared mutex ownership wrapper (class template) Functions std::swap(std::shared_lock) specialization of std::swap for shared_lock (function template) Synopsis namespace std { class shared_mutex; class shar

std::weak_ptr::owner_before

template< class Y > bool owner_before( const weak_ptr<Y>& other) const; template< class Y > bool owner_before( const std::shared_ptr<Y>& other) const; Checks whether this weak_ptr precedes other in implementation defined owner-based (as opposed to value-based) order. The order is such that two smart pointers compare equivalent only if they are both empty or if they both own the same object, even if the values of the pointers obtained by get() are d