std::basic_ifstream::swap

void swap( basic_ifstream& other ); (since C++11) Exchanges the state of the stream with those of other. This is done by calling basic_istream<CharT, Traits>::swap(other) and rdbuf()->swap(other.rdbuf()). Parameters other - stream to exchange the state with Return value (none). Example See also operator= (C++11) moves the file stream (public member function) swap (C++11) swaps two basic_filebuf objects (public member function of std::basic_

std::atomic::fetch_xor

(since C++11) (member only of atomic<Integral> template specialization) T fetch_xor( T arg, std::memory_order order = std::memory_order_seq_cst ); T fetch_xor( T arg, std::memory_order order = std::memory_order_seq_cst ) volatile; Atomically replaces the current value with the result of bitwise XOR of the value and arg. The operation is read-modify-write operation. Memory is affected according to the value of order. Parameters arg - th

std::unordered_multimap::count

size_type count( const Key& key ) const; (1) (since C++11) Returns the number of elements with key key. Parameters key - key value of the elements to count Return value Number of elements with key key. Complexity linear in the number of elements with key key on average, worst case linear in the size of the container. See also find finds element with specific key (public member function) equal_range returns range of elements matching a specific key (publi

std::raw_storage_iterator::base

OutputIt base() const; (since C++17) Provides access to the iterator passed in the constructor of this raw_storage_iterator. Parameters (none). Return value An iterator pointing at the same object as *this.

operators (std::basic_string)

Compare two basic_string objects template< class CharT, class Traits, class Alloc > bool operator==( const basic_string<CharT,Traits,Alloc>& lhs, const basic_string<CharT,Traits,Alloc>& rhs ); (1) template< class CharT, class Traits, class Alloc > bool operator!=( const basic_string<CharT,Traits,Alloc>& lhs, const basic_string<CharT,Traits,Alloc>& rhs ); (2) template< class CharT, class T

std::array::rend

reverse_iterator rend(); (since C++11) const_reverse_iterator rend() const; (since C++11) const_reverse_iterator crend() const; (since C++11) Returns a reverse iterator to the element following the last element of the reversed container. It corresponds to the element preceding the first element of the non-reversed container. This element acts as a placeholder, attempting to access it results in undefined behavior. Parameters (none). Return value Reverse iterator to the

std::promise::promise

promise(); (1) (since C++11) template< class Alloc > promise( std::allocator_arg_t, const Alloc& alloc ); (2) (since C++11) promise( promise&& other ); (3) (since C++11) promise( const promise& other ) = delete; (4) (since C++11) Constructs a promise object. 1) Default constructor. Constructs the promise with an empty shared state. 2) Constructs the promise with an empty shared state. The shared state is allocated using alloc. Alloc must meet th

Error numbers

Each of the macros defined in <cerrno> expands to integer constant expressions with type int, each with a positive value, matching most of the POSIX error codes. The following constants are defined (the implementation may define more, as long as they begin with 'E' followed by digits or uppercase letters). Defined in header <cerrno> E2BIG (C++11) Argument list too long (macro constant) EACCES (C++11) Permission denied (macro constant) EADDRINUSE (C++11) Address i

std::bad_exception::bad_exception

bad_exception(); bad_exception( const bad_exception& other ); Constructs new bad_exception object. 1) Default constructor. 2) Copy constructor. Initializes the object with the contents of other. Parameters other - bad_exception object to initialize with Exceptions noexcept specification: noexcept

std::basic_fstream::is_open

bool is_open(); (until C++11) bool is_open() const; (since C++11) Checks if the file stream has an associated file. Effectively calls rdbuf()->is_open(). Parameters (none). Return value true if the file stream has an associated file, false otherwise. Example #include <string> #include <fstream> #include <iostream> int main() { std::string filename = "some_file"; std::fstream fs(filename, std::ios::in); std::cout << std::boola