std::shared_lock::lock

void lock(); (since C++14) Locks the associated mutex in shared mode. Effectively calls mutex()->lock_shared(). Parameters (none). Return value (none). Exceptions Any exceptions thrown by mutex()->lock_shared() If there is no associated mutex, std::system_error with an error code of std::errc::operation_not_permitted If the associated mutex is already locked by this shared_lock (that is, owns_lock returns true), std::system_error with an error code of std::errc::reso

std::basic_ios::fail

bool fail() const; Returns true if an error has occurred on the associated stream. Specifically, returns true if badbit or failbit is set in rdstate(). See ios_base::iostate for the list of conditions that set failbit or badbit. Parameters (none). Return value true if an error has occurred, false otherwise. Example #include <iostream> #include <fstream> #include <cstdlib> int main() { std::ifstream file("test.txt"); if(!file) // operator! is used he

std::strstream::rdbuf

strstreambuf* rdbuf() const; Returns a pointer to the associated std::strstreambuf, casting away its constness (despite the const qualifier on the member function). Parameters (none). Return value Pointer to the associated std::strsteambuf, with constness cast away. Example #include <strstream> int main() { const std::strstream buf; std::strstreambuf* ptr = buf.rdbuf(); }

std::chrono::steady_clock

Defined in header <chrono> class steady_clock; (since C++11) Class std::chrono::steady_clock represents a monotonic clock. The time points of this clock cannot decrease as physical time moves forward. This clock is not related to wall clock time, and is best suitable for measuring intervals. std::chrono::steady_clock meets the requirements of TrivialClock. Member types Member type Definition rep arithmetic type representing the number of ticks in the clock's durat

std::bad_typeid

Defined in header <typeinfo> class bad_typeid : public std::exception; An exception of this type is thrown when a typeid operator is applied to a dereferenced null pointer value of a polymorphic type. Inheritance diagram. Member functions (constructor) constructs a new bad_typeid object (public member function) Inherited from std::exception Member functions (destructor) [virtual] destructs the exception object (virtual public member function of

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

std::error_code

Defined in header <system_error> class error_code; (since C++11) std::error_code is a platform-dependent error code. Each std::error_code object holds a pair of error code originating from the operating system, or some low-level interface and a pointer to an object of type std::error_category, which corresponds to the said interface. The error code values may be not unique across different error categories. Member functions (constructor) constructs an error code (pub

std::feof

Defined in header <cstdio> int feof( std::FILE* stream ); Checks if the end of the given file stream has been reached. Parameters stream - the file stream to check Return value Nonzero value if the end of the stream has been reached, otherwise ​0​. Notes This function only reports the stream state as reported by the most recent I/O operation, it does not examine the associated data source. For example, if the most recent I/O was a std::fgetc, which returned

condition_variable

This header is part of the thread support library. Classes condition_variable (C++11) provides a condition variable associated with a std::unique_lock (class) condition_variable_any (C++11) provides a condition variable associated with any lock type (class) cv_status (C++11) lists the possible results of timed waits on condition variables (enum) Functions notify_all_at_thread_exit (C++11) schedules a call to notify_all to be invoked when this thread is comple