sizeof

Usage sizeof operator sizeof... operator (since C++11)

std::thread::swap

void swap( thread& other ); (since C++11) Exchanges the underlying handles of two thread objects. Parameters other - the thread to swap with Return value (none). Exceptions noexcept specification: noexcept Example #include <iostream> #include <thread> #include <chrono> void foo() { std::this_thread::sleep_for(std::chrono::seconds(1)); } void bar() { std::this_thread::sleep_for(std::chrono::seconds(1)); } int main() { std::t

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::map::upper_bound

iterator upper_bound( const Key& key ); (1) const_iterator upper_bound( const Key& key ) const; (1) template< class K > iterator upper_bound( const K& x ); (2) (since C++14) template< class K > const_iterator upper_bound( const K& x ) const; (2) (since C++14) 1) Returns an iterator pointing to the first element that is greater than key. 2) Returns an iterator pointing to the first element that compares greater to the value x. This overlo

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

InputIterator

An InputIterator is an Iterator that can read from the pointed-to element. InputIterators only guarantee validity for single pass algorithms: once an InputIterator i has been incremented, all copies of its previous value may be invalidated. Requirements The type It satisfies InputIterator if. The type It satisfies Iterator The type It satisfies EqualityComparable And, given. i and j, values of type It or const It reference, the type denoted by std::iterator_traits<It>::referen

std::valarray::resize

void resize( std::size_t count, T value = T() ); Resizes the valarray to contain count elements and assigns value to each element. This functions invalidates all pointers and references to elements in the array. Parameters count - new size of the container value - the value to initialize the new elements with Return value (none). Example #include <valarray> #include <iostream> int main() { std::valarray<int> v{1,2,3}; v.resize(10);

std::swap(std::basic_ifstream)

template< class CharT, class Traits > void swap( basic_ifstream<CharT,Traits> &lhs, basic_ifstream<CharT,Traits> &rhs ); Specializes the std::swap algorithm for std::basic_ifstream. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs). Parameters lhs, rhs - streams whose state to swap Return value (none). Exceptions (none). Example See also swap (C++11) swaps two file streams (public member function)

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