std::swap(std::match_results)

Defined in header <regex> template< class BidirIt, class Alloc > void swap( match_results<BidirIt,Alloc>& x1, match_results<BidirIt,Alloc>& x2 ); (since C++11) Specializes the std::swap algorithm for std::match_results. Exchanges the contents of x1 with those of x2. Effectively calls x1.swap(x2). Parameters x1, x2 - the match_results objects whose contents will be swapped Type requirements - BidirIt must meet the requirements

Pointer declaration

Declares a variable of a pointer or pointer-to-member type. Syntax A pointer declaration is any simple declaration whose declarator has the form. * attr(optional) cv(optional) declarator (1) nested-name-specifier * attr(optional) cv(optional) declarator (2) 1) Pointer declarator: the declaration S* D; declares D as a pointer to the type determined by decl-specifier-seq S. 2) Pointer to member declarator: the declaration S C::* D; declares D as a pointer to member of C of type

std::search

Defined in header <algorithm> template< class ForwardIt1, class ForwardIt2 > ForwardIt1 search( ForwardIt1 first, ForwardIt1 last, ForwardIt2 s_first, ForwardIt2 s_last ); (1) template< class ForwardIt1, class ForwardIt2, class BinaryPredicate > ForwardIt1 search( ForwardIt1 first, ForwardIt1 last, ForwardIt2 s_first, ForwardIt2 s_last, BinaryPredicate p ); (2) Searches for the first occurrence of the subsequence of el

std::regex_traits::value

int value( CharT ch, int radix ) const; (since C++11) Determines the value represented by the digit ch in the numeric base radix, given the currently imbued locale. This function is called by std::regex when processing Quantifiers such as {1} or {2,5}, Backreferences such as \1, and hexadecimal and Unicode character escapes. Parameters ch - the character that may represent a digit radix - either 8, 10, or 16 Return value The numeric value if ch indeed represents a di

std::istrstream::istrstream

explicit istrstream(const char* s); (1) explicit istrstream(char* s); (2) istrstream(const char* s, std::streamsize n); (3) istrstream(char* s, std::streamsize n); (4) Constructs new istrstream and its underlying std::strstreambuf. 1,2) Constructs the underlying std::strstreambuf by calling strstreambuf(s,0) and initializes the base class with the address of the strstreambuf. The behavior is undefined if s is not pointing at an element of a null-terminated array. 3,4

std::chrono::time_point::time_point

(1) time_point(); (since C++11) (until C++14) constexpr time_point(); (since C++14) (2) explicit time_point( const duration& d ); (since C++11) (until C++14) constexpr explicit time_point( const duration& d ); (since C++14) (3) template< class Duration2 > time_point( const time_point<Clock,Duration2>& t ); (since C++11) (until C++14) template< class Duration2 > constexpr time_point( const time_point<Clock,Duration2>& t );

std::array::empty

constexpr bool empty(); (since C++11) (until C++14) constexpr bool empty() const; (since C++14) Checks if the container has no elements, i.e. whether begin() == end(). Parameters (none). Return value true if the container is empty, false otherwise. Exceptions noexcept specification: noexcept Complexity Constant. Example The following code uses empty to check if a std::array contains any elements: #include <array> #include <iostream> int main() {

std::chrono::floor(std::chrono::time_point)

Defined in header <chrono> template <class ToDuration, class Clock, class Duration> constexpr time_point<Clock, ToDuration> floor(const time_point<Clock, Duration>& tp); (since C++17) Returns the largest time point t representable in ToDuration that is smaller or equal to tp. The function does not participate in the overload resolution unless ToDuration is an specialization of std::chrono::duration. Parameters tp - time point to round down

std::set::value_comp

std::set::value_compare value_comp() const; Returns the function object that compares the values. It is the same as key_comp. Parameters (none). Return value The value comparison function object. Complexity Constant. See also key_comp returns the function that compares keys (public member function)

NullablePointer

Specifies that the type is a pointer-like object which can be compared to std::nullptr_t objects. Requirements The type must meet all of the following concept requirements: EqualityComparable DefaultConstructible CopyConstructible CopyAssignable Destructible In addition, a value-initialized object of the type must produce a null value of that type. This null value shall only be equivalent to itself. Default initialization of the type may have an indeterminate value. An object of