std::swap(std::valarray)

template< class T > void swap( valarray<T> &lhs, valarray<T> &rhs ); Specializes the std::swap algorithm for std::valarray. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs). Parameters lhs, rhs - valarrays whose contents to swap Return value (none). Complexity Constant. See also swap swaps with another valarray (public member function)

std::basic_streambuf::setg

void setg( char_type* gbeg, char_type* gcurr, char_type* gend ); Sets the values of the pointers defining the get area. Specifically, after the call eback() == gbeg, gptr() == gcurr, egptr() == gend. Parameters gbeg - pointer to the new beginning of the get area gcurr - pointer to the new current character (get pointer) in the get area gend - pointer to the new end of the get area Return value (none). Example #include <iostream> #include <sstream&

std::map::end

iterator end(); const_iterator end() const; const_iterator cend() const; (since C++11) Returns an iterator to the element following the last element of the container. This element acts as a placeholder; attempting to access it results in undefined behavior. Parameters (none). Return value Iterator to the element following the last element. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. See also begin

std::bind1st

Defined in header <functional> template< class F, class T > std::binder1st<F> bind1st( const F& f, const T& x ); (1) (until C++17)(deprecated since C++11) template< class F, class T > std::binder2nd<F> bind2nd( const F& f, const T& x ); (2) (until C++17)(deprecated since C++11) Binds a given argument x to a first or second parameter of the given binary function object f. That is, stores x within the resulting wrapper, which, if

std::swap(std::basic_fstream)

template< class CharT, class Traits > void swap( basic_fstream<CharT,Traits> &lhs, basic_fstream<CharT,Traits> &rhs ); Specializes the std::swap algorithm for std::basic_fstream. 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)

std::atomic::compare_exchange_weak

Defined in header <atomic> (1) (since C++11) bool compare_exchange_weak( T& expected, T desired, std::memory_order success, std::memory_order failure ); bool compare_exchange_weak( T& expected, T desired, std::memory_order success, std::memory_order failure ) volatile; (2) (since C++11) bool compare_exchange_weak( T& expected, T desired,

std::basic_string::swap

void swap( basic_string& other ); Exchanges the contents of the string with those of other. All iterators and references may be invalidated. Parameters other - string to exchange the contents with Return value (none). Exceptions noexcept specification: noexcept(std::allocator_traits<Allocator>::propagate_on_container_swap::value|| std::allocator_traits<Allocator>::is_always_equal::value) (since C++17) Example #include <string> #include &

std::complex::operators

complex<T>& operator+=( const T& other ); (1) template< class X > complex<T>& operator+=( const complex<X>& other ); (2) complex<T>& operator-=( const T& other ); (3) template< class X > complex<T>& operator-=( const complex<X>& other ); (4) complex<T>& operator*=( const T& other ); (5) template< class X > complex<T>& operator*=( const complex<X>&

std::integral_constant

Defined in header <type_traits> template< class T, T v > struct integral_constant; (since C++11) std::integral_constant wraps a static constant of specified type. It is the base class for the C++ type traits. Helper templates A helper alias template std::bool_constant is defined for the common case where T is bool. template <bool B> using bool_constant = integral_constant<bool, B>; (since C++17) Two specializations for the type bool are provid

std::num_put::num_put

Defined in header <locale> explicit num_put( std::size_t refs = 0 ); Creates a std::num_put facet and forwards the starting reference count refs to the base class constructor, locale::facet::facet(). Parameters refs - starting reference count