std::piecewise_constant_distribution::max

result_type max() const; (since C++11) Returns the maximum value potentially generated by the distribution. Parameters (none). Return value The maximum value potentially generated by the distribution. Complexity Constant. See also min returns the minimum potentially generated value (public member function)

Constant expressions

Defines an expression that can be evaluated at compile time. Such expressions can be used as non-type template arguments, array sizes, and in other contexts that require constant expressions, e.g. int n = 1; std::array<int, n> a1; // error, n is not a constant expression const int cn = 2; std::array<int, cn> a2; // OK, cn is a constant expression Core constant expressions A core constant expression is any expression that does not have any one of the following in any subexpression

fstream

This header is part of the Input/Output library. Classes basic_filebuf implements raw file device (class template) basic_ifstream implements high-level file stream input operations (class template) basic_ofstream implements high-level file stream output operations (class template) basic_fstream implements high-level file stream input/output (class template) Typedefs filebuf basic_filebuf<char> wfilebuf basic_filebuf<wchar_t> ifstream basic_ifs

Classes

A class is a user-defined type. A class type is defined by class-specifier, which appears in decl-specifier-seq of the declaration syntax. The class specifier has the following syntax: class-key attr class-head-name base-clause { member-specification } (1) class-key - one of class, struct, union attr(C++11) - optional sequence of any number of attributes class-head-name - the name of the class that's being defined. Optionally prepended by nested-name-specifier (sequen

std::map::get_allocator

allocator_type get_allocator() const; Returns the allocator associated with the container. Parameters (none). Return value The associated allocator. Complexity Constant.

explicit template specialization

Allows customizing the template code for a given set of template arguments. Syntax template <> declaration Any of the following can be fully specialized: function template class template (since C++14)variable template member function of a class template static data member of a class template member class of a class template member enumeration of a class template member class template of a class or class template member function template of a class or class temp

vector

This header is part of the containers library. Includes <initializer_list>(C++11) Classes vector dynamic contiguous array (class template) vector<bool> space-efficient dynamic bitset (class template specialization) std::hash<std::vector<bool>> (C++11) hash support for std::vector<bool> (class template specialization) Functions operator==operator!=operator<operator<=operator>operator>= lexicographically compares the va

std::multiset::size

size_type size() const; Returns the number of elements in the container, i.e. std::distance(begin(), end()). Parameters (none). Return value The number of elements in the container. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. Example The following code uses size to display the number of elements in a std::multiset: #include <set> #include <iostream> int main() { std::multiset<int> nums {

std::binomial_distribution

Defined in header <random> template< class IntType = int > class binomial_distribution; (since C++11) Produces random non-negative integer values i, distributed according to discrete probability function: P(i|t,p) = ⎛⎜⎝ti⎞⎟⎠ · pi · (1 − p)t−i The value obtained is the number of successes in a sequence of t yes/no experiments, each of which succeeds with probability p. std::binomial_distribution satisfies RandomNumberDistribution. Template parameters IntType

std::void_t

Defined in header <type_traits> template< class... > using void_t = void; (since C++17) Utility metafunction that maps a sequence of any types to the type void. Notes This metafunction is used in template metaprogramming to detect ill-formed types in SFINAE context: // primary template handles types that have no nested ::type member: template< class, class = std::void_t<> > struct has_type_member : std::false_type { }; // specialization recognizes typ