std::fill

Defined in header <algorithm> template< class ForwardIt, class T > void fill( ForwardIt first, ForwardIt last, const T& value ); Assigns the given value to the elements in the range [first, last). Parameters first, last - the range of elements to modify value - the value to be assigned Type requirements - ForwardIt must meet the requirements of ForwardIterator. Return value (none). Complexity Exactly last - first assignments. Possible

std::thread::join

void join(); (since C++11) Blocks the current thread until the thread identified by *this finishes its execution. Parameters (none). Return value (none). Postconditions joinable is false. Exceptions std::system_error if an error occurs. Error Conditions resource_deadlock_would_occur if this->get_id() == std::this_thread::get_id() (deadlock detected) no_such_process if the thread is not valid invalid_argument if joinable is false Example #include <iostre

std::queue::empty

bool empty() const; Checks if the underlying container has no elements, i.e. whether c.empty(). Parameters (none). Return value true if the underlying container is empty, false otherwise. Complexity Constant. See also size returns the number of elements (public member function)

std::reverse

Defined in header <algorithm> template< class BidirIt > void reverse( BidirIt first, BidirIt last ); Reverses the order of the elements in the range [first, last). Behaves as if applying std::iter_swap to every pair of iterators first+i, (last-i) - 1 for each non-negative i < (last-first)/2. Parameters first, last - the range of elements to reverse Type requirements - BidirIt must meet the requirements of BidirectionalIterator. -The type of dereferenc

std::thread::native_handle

native_handle_type native_handle(); (since C++11) Returns the implementation defined underlying thread handle. Parameters (none). Return value implementation defined handle type representing the thread. Exceptions (none). Example Uses native_handle to enable realtime scheduling of C++ threads on a POSIX system. #include <thread> #include <mutex> #include <iostream> #include <chrono> #include <cstring> #include <pthread.h> std::mutex iom

std::error_category::default_error_condition

virtual std::error_condition default_error_condition( int code ) const; (since C++11) Returns the error condition for the given error code. Equivalent to std::error_condition(code, *this). Parameters code - error code for which to return error condition Return value The error condition for the given error code. Exceptions noexcept specification: noexcept

operators (std::bitset)

template< std::size_t N > bitset<N> operator&( const bitset<N>& lhs, const bitset<N>& rhs ); (1) template< std::size_t N > bitset<N> operator|( const bitset<N>& lhs, const bitset<N>& rhs ); (2) template< std::size_t N > bitset<N> operator^( const bitset<N>& lhs, const bitset<N>& rhs ); (3) Performs binary AND, OR, and XOR between two bitsets, lhs and rhs. 1) Returns a bitset&

std::basic_istream::swap

protected: void swap(basic_istream& rhs); (since C++11) Calls basic_ios::swap(rhs) to swap all data members of the base class except for rdbuf(), and swaps the values of the gcount() counters between *this and rhs. This swap function is protected: it is called by the swap functions of the swappable input stream classes std::basic_ifstream and std::basic_istringstream, which know how to correctly swap the associated streambuffers. Parameters rhs - different basic_istream obje

std::basic_ostream::flush

basic_ostream& flush(); Writes uncommitted changes to the underlying output sequence. If rdbuf() is a null pointer, does nothing. Otherwise, behaves as an UnformattedOutputFunction (since C++11). After constructing and checking the sentry object, calls rdbuf()->pubsync(). If the call returns -1, calls setstate(badbit). Parameters (none). Return value *this. Exceptions May throw std::ios_base::failure if exceptions()&badbit!=0. Example #include <thread> #in

std::promise::get_future

std::future<T> get_future(); (since C++11) Returns a future object associated with the same shared state as *this. Exception is thrown if *this has no shared state or get_future has already been called. To get multiple "pop" ends of the promise-future communication channel, use std::future::share. Parameters (none). Return value A future referring to the shared state of *this. Exceptions std::future_error on the following conditions: *this has no shared state. The error