std::basic_string::find_first_of

size_type find_first_of( const basic_string& str, size_type pos = 0 ) const; (1) size_type find_first_of( const CharT* s, size_type pos, size_type count ) const; (2) size_type find_first_of( const CharT* s, size_type pos = 0 ) const; (3) size_type find_first_of( CharT ch, size_type pos = 0 ) const; (4) Finds the first character equal to one of the characters in the given character sequence. The search considers only the interval [pos, size()). If the character is n

Fundamental types

(See also type for type system overview and the list of type-related utilities that are provided by the C++ library). Void type void - type with an empty set of values. It is an incomplete type that cannot be completed (consequently, objects of type void are disallowed). There are no arrays of void, nor references to void. However, pointers to void and functions returning type void (procedures in other languages) are permitted. std::nullptr_t Boolean type bool - type, capable of

std::basic_ios::set_rdbuf

protected: void set_rdbuf( std::basic_streambuf<CharT,Traits>* sb ); Sets the associated stream buffer to sb without clearing the error state. This member function is protected: it is called by the move constructors of the derived streams such as std::basic_ofstream or std::basic_istringstream, as the final step after constructing the base class and after moving the stream buffer: only the most derived stream class knows how to correctly move the stream buffer, but std::basic_ios

Overload resolution

In order to compile a function call, the compiler must first perform name lookup, which, for functions, may involve argument-dependent lookup, and for function templates may be followed by template argument deduction. If these steps produce more than one candidate function, then overload resolution is performed to select the function that will actually be called. In general, the candidate function whose parameters match the arguments most closely is the one that is called. Details Before ove

std::ispunct(std::locale)

Defined in header <locale> template< class charT > bool ispunct( charT ch, const locale& loc ); Checks if the given character is classified as an punctuation character by the given locale's std::ctype facet. Parameters ch - character loc - locale Return value Returns true if the character is classified as punctuation, false otherwise. Possible implementation template< class charT > bool ispunct( charT ch, const std::locale& loc )

std::recursive_timed_mutex::lock

void lock(); (since C++11) Locks the mutex. If another thread has already locked the mutex, a call to lock will block execution until the lock is acquired. A thread may call lock on a recursive mutex repeatedly. Ownership will only be released after the thread makes a matching number of calls to unlock. The maximum number of levels of ownership is unspecified. An exception of type std::system_error will be thrown if this number is exceeded. Prior unlock() operation on the same mutex syn

std::acos(std::complex)

Defined in header <complex> template< class T > complex<T> acos( const complex<T>& z ); (since C++11) Computes complex arc cosine of a complex value z. Branch cuts exist outside the interval [−1 ; +1] along the real axis. Parameters z - complex value Return value If no errors occur, complex arc cosine of z is returned, in the range [0 ; ∞) along the real axis and in the range [−iπ ; iπ] along the imaginary axis. Error handling and spec

std::basic_stringbuf::seekoff

protected: virtual pos_type seekoff(off_type off, ios_base::seekdir dir, ios_base::openmode which = ios_base::in | ios_base::out); Repositions std::basic_streambuf::gptr and/or std::basic_streambuf::pptr, if possible, to the position that corresponds to exactly off characters from beginning, end, or current position of the get and/or put area of the buffer. If which includes ios_base::in and this buffer is open for reading (that is, if

std::exchange

Defined in header <utility> template< class T, class U = T > T exchange( T& obj, U&& new_value ); (since C++14) Replaces the value of obj with new_value and returns the old value of obj. Parameters obj - object whose value to replace new_value - the value to assign to obj Type requirements - T must meet the requirements of MoveConstructible. Also, it must be possible to move-assign objects of type U to objects of type T Return value

std::find_end

Defined in header <algorithm> template< class ForwardIt1, class ForwardIt2 > ForwardIt1 find_end( ForwardIt1 first, ForwardIt1 last, ForwardIt2 s_first, ForwardIt2 s_last ); (1) template< class ForwardIt1, class ForwardIt2, class BinaryPredicate > ForwardIt1 find_end( ForwardIt1 first, ForwardIt1 last, ForwardIt2 s_first, ForwardIt2 s_last, BinaryPredicate p ); (2) Searches for the last subsequence of elements [s_f