std::stable_sort

Defined in header <algorithm> template< class RandomIt > void stable_sort( RandomIt first, RandomIt last ); (1) template< class RandomIt, class Compare > void stable_sort( RandomIt first, RandomIt last, Compare comp ); (2) Sorts the elements in the range [first, last) in ascending order. The order of equal elements is guaranteed to be preserved. The first version uses operator< to compare the elements, the second version uses the given comparison functi

std::stable_partition

Defined in header <algorithm> template< class BidirIt, class UnaryPredicate > BidirIt stable_partition( BidirIt first, BidirIt last, UnaryPredicate p ); Reorders the elements in the range [first, last) in such a way that all elements for which the predicate p returns true precede the elements for which predicate p returns false. Relative order of the elements is preserved. Parameters first, last - the range of elements to reorder p - unary predicate whic

std::srand

Defined in header <cstdlib> void srand( unsigned seed ); Seeds the pseudo-random number generator used by std::rand() with the value seed. If rand() is used before any calls to srand(), rand() behaves as if it was seeded with srand(1). Each time rand() is seeded with srand(), it must produce the same sequence of values. srand() is not guaranteed to be thread-safe. Parameters seed - the seed value Return value (none). Notes Generally speaking, the pseudo-ran

std::sqrt(std::valarray)

Defined in header <valarray> template< class T > valarray<T> sqrt( const valarray<T>& va ); For each element in va computes the square root of the value of the element. Parameters va - value array to apply the operation to Return value Value array containing square roots of the values in va. Notes Unqualified function (sqrt) is used to perform the computation. If such function is not available, std::sqrt is used due to argument depende

std::sqrt(std::complex)

Defined in header <complex> template< class T > complex<T> sqrt( const complex<T>& z ); Computes the square root of the complex number z with a branch cut along the negative real axis. Parameters z - complex number to take the square root of Return value If no errors occur, returns the square root of z, in the range of the right half-plane, including the imaginary axis ([0; +∞) along the real axis and (−∞; +∞) along the imaginary axis.).

std::sqrt

Defined in header <cmath> float sqrt( float arg ); (1) double sqrt( double arg ); (2) long double sqrt( long double arg ); (3) double sqrt( Integral arg ); (4) (since C++11) Computes the square root of arg. 4) A set of overloads or a function template accepting an argument of any integral type. Equivalent to 2) (the argument is cast to double). Parameters arg - Value of a floating-point or Integral type Return value If no err

std::sort_heap

Defined in header <algorithm> template< class RandomIt > void sort_heap( RandomIt first, RandomIt last ); (1) template< class RandomIt, class Compare > void sort_heap( RandomIt first, RandomIt last, Compare comp ); (2) Converts the max heap [first, last) into a sorted range in ascending order. The resulting range no longer has the heap property. The first version of the function uses operator< to compare the elements, the second uses the given compariso

std::sort

Defined in header <algorithm> template< class RandomIt > void sort( RandomIt first, RandomIt last ); (1) template< class RandomIt, class Compare > void sort( RandomIt first, RandomIt last, Compare comp ); (2) Sorts the elements in the range [first, last) in ascending order. The order of equal elements is not guaranteed to be preserved. The first version uses operator< to compare the elements, the second version uses the given comparison function object

std::slice_array::slice_array

slice_array( const slice_array& other ); slice_array() = delete; Constructs a slice_array from another slice_array other. The default constructor is implicitly deleted. Parameters other - slice_array to initialize with

std::slice_array::operators

void operator+=( const std::valarray<T>& other ); void operator-=( const std::valarray<T>& other ); void operator*=( const std::valarray<T>& other ); void operator/=( const std::valarray<T>& other ); void operator%=( const std::valarray<T>& other ); void operator&=( const std::valarray<T>& other ); void operator|=( const std::valarray<T>& other ); void operator^=( const std::vala