Compile-time rational arithmetic

The class template std::ratio and associated templates provide compile-time rational arithmetic support. Each instantiation of this template exactly represents any finite rational number. Compile-time fractions Defined in header <ratio> ratio represents exact rational fraction (class template) Several convenience typedefs that correspond to the SI ratios are provided by the standard library: Defined in header <ratio> Type Definition yocto std::ratio<1, 1000

or

Usage alternative operators: as an alternative for ||

std::vector::rend

reverse_iterator rend(); const_reverse_iterator rend() const; const_reverse_iterator crend() const; (since C++11) Returns a reverse iterator to the element following the last element of the reversed container. It corresponds to the element preceding the first element of the non-reversed container. This element acts as a placeholder, attempting to access it results in undefined behavior. Parameters (none). Return value Reverse iterator to the element following the last

std::is_assignable

Defined in header <type_traits> template< class T, class U > struct is_assignable; (1) (since C++11) template< class T, class U > struct is_trivially_assignable; (2) (since C++11) template< class T, class U > struct is_nothrow_assignable; (3) (since C++11) 1) If the expression std::declval<T>() = std::declval<U>() is well-formed in unevaluated context, provides the member constant value equal true. Otherwise, value is false. Access

std::packaged_task::make_ready_at_thread_exit

void make_ready_at_thread_exit( ArgTypes... args ); (since C++11) Calls the stored task with forwarded args as the arguments. The return value of the task or any exception thrown by it is stored in the shared state of *this. The shared state is only made ready after the current thread exits and all objects of thread local storage duration are destroyed. Parameters args - the parameters to pass on invocation of the stored task Return value (none). Exceptions std::future_

std::wstring_convert::state

Defined in header <locale> state_type state() const; Returns the current value of the conversion state, which is stored in this wstring_convert object. The conversion state may be explicitly set in the constructor and is updated by all conversion operations. Return value The current conversion state. Example See also to_bytes converts a wide string into a byte string (public member function) from_bytes converts a byte string into a wide string (public memb

std::match_results::begin

iterator begin(); (since C++11) const_iterator begin() const; (since C++11) const_iterator cbegin() const; (since C++11) Returns an iterator to the beginning of the list of sub-matches. If match was successful, the iterator will point to the entire matched expression. Parameters (none). Return value Iterator to the first sub-match. Exceptions noexcept specification: noexcept Complexity Constant. See also endcend returns iterator to the end of the list of

std::swap(std::packaged_task)

template< class Function, class... Args > void swap( packaged_task<Function(Args...)> &lhs, packaged_task<Function(Args...)> &rhs ); (since C++11) Specializes the std::swap algorithm for std::packaged_task. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs). Parameters lhs, rhs - packaged tasks whose states to swap Return value (none). Exceptions noexcept specification: noexcept Example See also s

std::match_results::suffix

const_reference suffix() const; (since C++11) Obtains a reference to the std::sub_match object representing the target sequence between the end of the entire match of the regular expression and the end of the target sequence. The behavior is undefined unless ready() == true. Parameters (none). Return value Reference to the unmatched suffix. Example #include <iostream> #include <regex> #include <string> int main() { std::regex re("a(a)*b"); std::str

iosfwd

This header contains forward declarations for the Input/output library. Forward declarations Defined in header <string> std::char_traits Class Template which describes properties of a character type (class template) std::char_traits<char> (class template specialization) std::char_traits<wchar_t> (class template specialization) std::char_traits<char16_t> (C++11) (class template specialization) std::char_traits<char32_t> (C++11) (class templ