std::remove

Defined in header <algorithm> template< class ForwardIt, class T > ForwardIt remove( ForwardIt first, ForwardIt last, const T& value ); (1) template< class ForwardIt, class UnaryPredicate > ForwardIt remove_if( ForwardIt first, ForwardIt last, UnaryPredicate p ); (2) Removes all elements satisfying specific criteria from the range [first, last) and returns a past-the-end iterator for the new end of the range. The first version removes all elements that

std::swap_ranges

Defined in header <algorithm> template< class ForwardIt1, class ForwardIt2 > ForwardIt2 swap_ranges( ForwardIt1 first1, ForwardIt1 last1, ForwardIt2 first2 ); Exchanges elements between range [first1, last1) and another range starting at first2. Parameters first1, last1 - the first range of elements to swap first2 - beginning of the second range of elements to swap Type requirements - ForwardIt1, ForwardIt2 must meet the requirements of ForwardIterat

std::list::reverse

void reverse(); Reverses the order of the elements in the container. No references or iterators become invalidated. Parameters (none). Return value (none). Example #include <iostream> #include <list> std::ostream& operator<<(std::ostream& ostr, const std::list<int>& list) { for (auto &i : list) { ostr << " " << i; } return ostr; } int main() { std::list<int> list = { 8,7,5,9,0,1,3,2,6,4 };

std::multimap::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::basic_streambuf::swap

void swap( basic_streambuf& other ); (since C++11) Exchanges the contents of the stream buffer with those of other. Parameters other - stream buffer to exchange contents with Return value (none). Exceptions (none). Example

std::random_device::entropy

double entropy() const; (since C++11) Obtains an estimate of the random number device entropy, which is a floating-point value between min() and log2(max()+1). If the device has n states whose individual probabilities are P0,...,Pn-1, the device probability S is defined as. S = -Σn-1i=0Pilog(Pi). A deterministic random number generator (e.g. a pseudo-random engine) has entropy zero. Exceptions noexcept specification: noexcept Return value The value of the device entropy, or zero

std::tuple_element&lt;std::pair&gt;

Defined in header <utility> template< class T1, class T2 > struct tuple_element<0, std::pair<T1,T2> >; (1) (since C++11) template< class T1, class T2 > struct tuple_element<1, std::pair<T1,T2> >; (2) (since C++11) The partial specializations of std::tuple_element for pairs provide compile-time access to the types of the pair's elements, using tuple-like syntax. Member types First version Member type Definition type T

std::for_each

Defined in header <algorithm> template< class InputIt, class UnaryFunction > UnaryFunction for_each( InputIt first, InputIt last, UnaryFunction f ); Applies the given function object f to the result of dereferencing every iterator in the range [first, last), in order. If InputIt is a mutable iterator, f may modify the elements of the range through the dereferenced iterator. If f returns a result, the result is ignored. Parameters first, last - the range to app

std::unordered_multimap::emplace_hint

template <class... Args> iterator emplace_hint( const_iterator hint, Args&&... args ); (since C++11) Inserts a new element to the container, using hint as a suggestion where the element should go. The element is constructed in-place, i.e. no copy or move operations are performed. The constructor of the element type (value_type, that is, std::pair<const Key, T>) is called with exactly the same arguments as supplied to the function, forwarded with std::forward<Args&

std::fegetenv

Defined in header <cfenv> int fegetenv( std::fenv_t* envp ) (1) (since C++11) int fesetenv( const std::fenv_t* envp ); (2) (since C++11) Manages the status of the floating-point environment. 1) Attempts to store the status of the floating-point environment in the object pointed to by envp. 2) Attempts to establish the floating-point environment from the object pointed to by envp. The value of that object must be previously obtained by a call to std::feholdexcept or