std::max_element

Defined in header <algorithm> (1) template< class ForwardIt > ForwardIt max_element(ForwardIt first, ForwardIt last); (until C++17) template< class ForwardIt > constexpr ForwardIt max_element(ForwardIt first, ForwardIt last); (since C++17) (2) template< class ForwardIt, class Compare > ForwardIt max_element(ForwardIt first, ForwardIt last, Compare cmp); (until C++17) template< class ForwardIt, class Compare > constexpr ForwardIt max_ele

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

cstdio

This header was originally in the C standard library as <stdio.h>. This header is part of the C-style input/output library. Types FILE type, capable of holding all information needed to control a C I/O stream fpos_t type, capable of uniquely specifying a position in a file size_t unsigned integer type returned by the sizeof operator (typedef) Macros NULL implementation-defined null pointer constant (macro constant) stdinstdoutstderr expression of type FILE* as

std::max

Defined in header <algorithm> (1) template< class T > const T& max( const T& a, const T& b ); (until C++14) template< class T > constexpr const T& max( const T& a, const T& b ); (since C++14) (2) template< class T, class Compare > const T& max( const T& a, const T& b, Compare comp ); (until C++14) template< class T, class Compare > constexpr const T& max( const T& a, const T& b, Compare co

std::basic_string::npos

static const size_type npos = -1; This is a special value equal to the maximum value representable by the type size_type. The exact meaning depends on context, but it is generally used either as end of string indicator by the functions that expect a string index or as the error indicator by the functions that return a string index. Example #include <iostream> #include <bitset> #include <string> int main() { // string search functions return npos if nothing i

std::moneypunct

Defined in header <locale> template< class CharT, bool International = false > class moneypunct; The facet std::moneypunct encapsulates monetary value format preferences. Stream I/O manipulators std::get_money and std::put_money use std::moneypunct through std::money_get and std::money_put for parsing monetary value input and formatting monetary value output. Inheritance diagram. Four standalone (locale-independent) specializations are provided by the standard l

final

Usage final specifier

std::unordered_map::unordered_map

(1) explicit unordered_map( size_type bucket_count = /*implementation-defined*/, const Hash& hash = Hash(), const KeyEqual& equal = KeyEqual(), const Allocator& alloc = Allocator() ); (since C++11) (until C++14) unordered_map() : unordered_map( size_type(/*implementation-defined*/) {} explicit unordered_map( size_type bucket_count, const Hash& hash = Hash(),

std::function::assign

template< class F, class Alloc > void assign( F&& f, const Alloc& alloc ); (since C++11) (until C++17) Initializes the target with f. alloc is used to allocate memory for any internal data structures that the function might use. Equivalent to function(allocator_arg, alloc, std::forward<F>(f)).swap(*this). Parameters f - callable function to initialize the target with alloc - allocator to use to allocate memory for the internal data structures R

std::vector::resize

void resize( size_type count, T value = T() ); (until C++11) void resize( size_type count ); (1) (since C++11) void resize( size_type count, const value_type& value ); (2) (since C++11) Resizes the container to contain count elements. If the current size is greater than count, the container is reduced to its first count elements. If the current size is less than count, additional elements are appended and initialized with copies of value. (until C++11) If the current