std::ostream_iterator

Defined in header <iterator> template< class T, class CharT = char, class Traits = std::char_traits<CharT> > class ostream_iterator : public std::iterator<std::output_iterator_tag, void, void, void, void> (until C++17) template< class T, class CharT = char, class Traits = std::char_traits<CharT>> class ostream_iterator; (since C++17) std::ostream_iterato

std::condition_variable_any::condition_variable_any

condition_variable_any(); (1) (since C++11) condition_variable_any(const condition_variable_any&) = delete; (2) (since C++11) 1) Constructs an object of type std::condition_variable_any. 2) Copy constructor is deleted. Parameters (none). Exceptions 1) May throw std::system_error with std::error_condition equal to std::errc::operation_not_permitted if the thread has no privilege to create a condition variable, std::errc::resource_unavailable_try_again if a non-memory reso

std::shared_ptr::unique

bool unique() const; Checks if *this is the only shared_ptr instance managing the current object, i.e. whether use_count() == 1. Parameters (none). Return value true if *this is the only shared_ptr instance managing the current object, false otherwise. Exceptions noexcept specification: noexcept Example #include <memory> #include <iostream> int main() { auto sp1 = std::make_shared<int>(5); std::cout << std::boolalpha; std::cout &

std::fread

Defined in header <cstdio> std::size_t fread( void* buffer, std::size_t size, std::size_t count, std::FILE* stream ); Reads up to count objects into the array buffer from the given input stream stream as if by calling std::fgetc size times for each object, and storing the results, in the order obtained, into the successive positions of buffer, which is reinterpreted as an array of unsigned char. The file position indicator for the stream is advanced by the number of charact

delete

Usage delete expression allocation functions as the name of operator-like functions deleted functions (since C++11)

std::time_get::get_date

Defined in header <locale> public: iter_type get_date( iter_type beg, iter_type end, std::ios_base& str, std::ios_base::iostate& err, std::tm* t ) const; (1) protected: virtual iter_type do_get_date( iter_type beg, iter_type end, std::ios_base& str, std::ios_base::iostate& err, std::tm* t ) const; (2) 1) Public member function, calls the protected virtual member function do_get_date() of the most deri

std::next_permutation

Defined in header <algorithm> template< class BidirIt > bool next_permutation( BidirIt first, BidirIt last ); (1) template< class BidirIt, class Compare > bool next_permutation( BidirIt first, BidirIt last, Compare comp ); (2) Transforms the range [first, last) into the next permutation from the set of all permutations that are lexicographically ordered with respect to operator< or comp. Returns true if such permutation exists, otherwise transforms the

std::error_category::equivalent

virtual bool equivalent( int code, const std::error_condition& condition ) const; (1) (since C++11) virtual bool equivalent( const std::error_code& code, int condition ) const; (2) (since C++11) Checks whether error code is equivalent to an error condition for the error category represented by *this. 1) Equivalent to default_error_condition(code) == condition. 2) Equivalent to *this == code.category() && code.val

std::shared_timed_mutex::unlock

void unlock(); (since C++14) Unlocks the mutex. The mutex must be locked by the current thread of execution, otherwise, the behavior is undefined. This operation synchronizes-with (as defined in std::memory_order) any subsequent lock operation that obtains ownership of the same mutex. Parameters (none). Return value (none). Exceptions (none). Notes unlock() is usually not called directly: std::unique_lock and std::lock_guard are used to manage exclusive locking. Example

std::error_category::error_category

error_category( const error_category& other ) = delete; (1) (since C++11) constexpr error_category(); (2) (since C++14) Constructs the error category object. Parameters (none). Exceptions 2) noexcept specification: noexcept