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

std::basic_ios::move

protected: void move( basic_ios& other ); (since C++11) protected: void move( basic_ios&& other ); (since C++11) Replaces the current state with that of other, except for the associated rdbuf. other is in valid, but unspecified state after the call. After the call to this function, rdbuf() returns NULL, and other.rdbuf() returns the same value as before the call. This member function is protected: it is called by the protected move constructors of the derived stream cl

std::char_traits::find

static const char_type* find( const char_type* p, std::size_t count, const char_type& ch ); Searches for character ch within the first count characters of the sequence pointed to by p. Parameters p - pointer to a character string to search count - the number of characters to analyze ch - the character to search for Return value A pointer to the first character in the range specified by [p, p + count) that compares equal to ch, or NULL if not found. Except