Function template

A function template defines a family of functions. Syntax template < parameter-list > function-declaration (1) export template < parameter-list > function-declaration (2) (until C++11) function-declaration-with-placeholders (3) (concepts TS) Explanation function-declaration - a function declaration. The function name declared become a template name. function-declaration-with-placeholders - a function declaration where the type of at least one par

std::shared_timed_mutex::try_lock_until

template< class Clock, class Duration > bool try_lock_until( const std::chrono::time_point<Clock,Duration>& timeout_time ); (since C++14) Tries to lock the mutex. Blocks until specified timeout_time has been reached or the lock is acquired, whichever comes first. On successful lock acquisition returns true, otherwise returns false. If timeout_time has already passed, this function behaves like try_lock(). The clock tied to timeout_time is used, which means that adjustmen

std::fopen

Defined in header <cstdio> std::FILE* fopen( const char* filename, const char* mode ); Opens a file indicated by filename and returns a file stream associated with that file. mode is used to determine the file access mode. Parameters filename - file name to associate the file stream to mode - null-terminated character string determining file access mode File access mode string Meaning Explanation Action if file already exists Action if file does not

std::bitset

Defined in header <bitset> template< std::size_t N > class bitset; The class template bitset represents a fixed-size sequence of N bits. Bitsets can be manipulated by standard logic operators and converted to and from strings and integers. bitset meets the requirements of CopyConstructible and CopyAssignable. Template parameters N - the number of bits to allocate storage for Member types reference proxy class representing a reference to a bit (class)

std::ios_base::event_callback

typedef void (*event_callback)(event type, ios_base& ios, int index); The type of function callbacks that can be registered using register_callback() to be called on specific events. type is a value of type ios_base::event which indicates the type of the event that will invoke this callback. ios refers to the stream object for which the callback is invoked: *this is passed as the argument when callbacks are invoked by std::ios_base and std::basic_ios member functions. index is the u

std::isblank

Defined in header <cctype> int isblank( int ch ); (since C++11) Checks if the given character is a blank character as classified by the currently installed C locale. Blank characters are whitespace characters used to separate words within a sentence. In the default C locale, only space (0x20) and horizontal tab (0x09) are classified as blank characters. The behavior is undefined if the value of ch is not representable as unsigned char and is not equal to EOF. Parameters

std::vprintf

Defined in header <cstdio> int vprintf( const char* format, va_list vlist ); (1) int vfprintf( std::FILE* stream, const char* format, va_list vlist ); (2) int vsprintf( char* buffer, const char* format, va_list vlist ); (3) int vsnprintf( char* buffer, std::size_t buf_size, const char* format, va_list vlist ); (4) (since C++11) Loads the data from the locations, defined by vlist, converts them to character string equivalents and writes the results to a var

typedef

Usage typedef declaration

std::unordered_multiset::hash_function

hasher hash_function() const; (since C++11) Returns the function that hashes the keys. Parameters (none). Return value The hash function. Complexity Constant. See also key_eq returns the function used to compare keys for equality (public member function)

std::log10(std::valarray)

Defined in header <valarray> template< class T > valarray<T> log10( const valarray<T>& va ); For each element in va computes common (base 10) logarithm of the value of the element. Parameters va - value array to apply the operation to Return value Value array common logarithms of the values in va. Notes Unqualified function (log10) is used to perform the computation. If such function is not available, std::log10 is used due to argument