std::basic_ofstream

Defined in header <fstream> template< class CharT, class Traits = std::char_traits<CharT> > class basic_ofstream : public std::basic_ostream<CharT, Traits> The class template basic_ofstream implements high-level output operations on file based streams. It interfaces a file-based streambuffer (std::basic_filebuf) with the high-level interface of (std::basic_ostream). A typical implementation of std::basic_ofstream holds only one non-derived data m

std::upper_bound

Defined in header <algorithm> template< class ForwardIt, class T > ForwardIt upper_bound( ForwardIt first, ForwardIt last, const T& value ); (1) template< class ForwardIt, class T, class Compare > ForwardIt upper_bound( ForwardIt first, ForwardIt last, const T& value, Compare comp ); (2) Returns an iterator pointing to the first element in the range [first, last) that is greater than value. The range [first, last) must be at least partially ordered

std::ostream_iterator::ostream_iterator

ostream_iterator(ostream_type& stream, const CharT* delim) (1) ostream_iterator(ostream_type& stream) (2) 1) Constructs the iterator with the private ostream_type* member initialized with &stream and the private delimiter pointer initialized with delim. 2) Constructs the iterator with the private ostream_type* member initialized with &stream and the private delimiter pointer initialized with null pointer value. Parameters stream - the output stream to be ac

Static Assertion

Performs compile-time assertion checking. Syntax static_assert ( bool_constexpr , message ) (since C++11) static_assert ( bool_constexpr ) (since C++17) Explanation bool_constexpr - a constant expression that is contextually convertible to bool message - optional (since C++17)string literal that will appear as compiler error if bool_constexpr is false A static assert declaration may appear at block scope (as a block declaration) and inside a class body (as a m

std::time_get::get_year

Defined in header <locale> public: iter_type do_get_year( iter_type s, iter_type end, std::ios_base& str, std::ios_base::iostate& err, std::tm* t) const; (1) protected: virtual iter_type do_get_year( iter_type s, 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_year of the most derive

std::atomic_thread_fence

Defined in header <atomic> extern "C" void atomic_thread_fence( std::memory_order order ); (since C++11) Establishes memory synchronization ordering of non-atomic and relaxed atomic accesses, as instructed by order, without an associated atomic operation. For example, all non-atomic and relaxed atomic stores that happen before a std::memory_order_release fence in thread A will be synchronized with non-atomic and relaxed atomic loads from the same locations made in thread B

std::less

Defined in header <functional> template< class T > struct less; (until C++14) template< class T = void > struct less; (since C++14) Function object for performing comparisons. Unless specialized, invokes operator< on type T. Specializations The partial specialization of std::less for any pointer type yields a total order, even if the built-in operator< does not. The standard library provides a specialization of std::less when T is not specified,

std::this_thread::sleep_for

Defined in header <thread> template< class Rep, class Period > void sleep_for( const std::chrono::duration<Rep, Period>& sleep_duration ); (since C++11) Blocks the execution of the current thread for at least the specified sleep_duration. A steady clock is used to measure the duration. This function may block for longer than sleep_duration due to scheduling or resource contention delays. Parameters sleep_duration - time duration to sleep Return

Thread support library

C++ includes built-in support for threads, mutual exclusion, condition variables, and futures. Threads Threads enable programs to execute across several processor cores. Defined in header <thread> thread (C++11) manages a separate thread (class) Functions managing the current thread Defined in namespace this_thread yield (C++11) suggests that the implementation reschedule execution of threads (function) get_id (C++11) returns the thread id of the current

std::isnan

Defined in header <cmath> bool isnan( float arg ); (1) (since C++11) bool isnan( double arg ); (2) (since C++11) bool isnan( long double arg ); (3) (since C++11) bool isnan( Integral arg ); (4) (since C++11) 1-3) Determines if the given floating point number arg is a not-a-number (NaN) value. 4) A set of overloads or a function template accepting the from argument of any integral type. Equivalent to (2) (the argument is cast to double). Parameters a