numeric

This header is part of the numeric library. Functions iota (C++11) fills a range with successive increments of the starting value (function template) accumulate sums up a range of elements (function template) inner_product computes the inner product of two ranges of elements (function template) adjacent_difference computes the differences between adjacent elements in a range (function template) partial_sum computes the partial sum of a range of elements (function te

std::map::clear

void clear(); Removes all elements from the container. Invalidates any references, pointers, or iterators referring to contained elements. May invalidate any past-the-end iterators. Parameters (none). Return value (none). Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Linear in the size of the container. See also erase erases elements (public member function)

std::multimap::multimap

(1) explicit multimap( const Compare& comp = Compare(), const Allocator& alloc = Allocator() ); (until C++14) multimap() : multimap( Compare() ) {} explicit multimap( const Compare& comp, const Allocator& alloc = Allocator() ); (since C++14) explicit multimap( const Allocator& alloc ); (1) (since C++11) (2) template< class InputIterator > multimap( InputIterator first, InputIterator last, const Comp

private

Usage private access specifier

Default constructors

A default constructor is a constructor which can be called with no arguments (either defined with an empty parameter list, or with default arguments provided for every parameter). A type with a public default constructor is DefaultConstructible. Syntax ClassName ( ) ; (1) ClassName :: ClassName ( ) body (2) ClassName() = delete ; (3) (since C++11) ClassName() = default ; (4) (since C++11) Explanation 1) Declaration of a default constructor. 2) Definition of the

std::isxdigit(std::locale)

Defined in header <locale> template< class charT > bool isxdigit( charT ch, const locale& loc ); Checks if the given character is classified as a hexadecimal digit by the given locale's std::ctype facet. Parameters ch - character loc - locale Return value Returns true if the character is classified as a hexadecimal digit, false otherwise. Possible implementation template< class charT > bool isxdigit( charT ch, const std::locale& l

std::error_code::category

const std::error_category& category() const; (since C++11) Returns the error category of the error value. Parameters (none). Return value The error category of the error value. Exceptions noexcept specification: noexcept See also value obtains the value of the error_code (public member function)

StandardLayoutType

Specifies that a type is standard layout type. Standard layout types are useful for communicating with code written in other programming languages. Note, that the standard doesn't define a named requirement or concept with this name. This is a type category defined by the core language. It is included here as concept only for consistency. Requirements All non-static data members have the same access control Has no virtual functions or virtual base classes All non-static data members and

Namespaces

Namespaces provide a method for preventing name conflicts in large projects. Symbols declared inside a namespace block are placed in a named scope that prevents them from being mistaken for identically-named symbols in other scopes. Multiple namespace blocks with the same name are allowed. All declarations within those blocks are declared in the named scope. Syntax namespace ns_name { declarations } (1) inline namespace ns_name { declarations } (2) (since C++11) namespace { decl

std::deque::front

reference front(); const_reference front() const; Returns a reference to the first element in the container. Calling front on an empty container is undefined. Parameters (none). Return value reference to the first element. Complexity Constant. Notes For a container c, the expression c.front() is equivalent to *c.begin(). Example The following code uses front to display the first element of a std::deque<char>: #include <deque> #include <iostream>