std::basic_string::data

const CharT* data() const; Returns pointer to the underlying array serving as character storage. The pointer is such that the range [data(); data() + size()) is valid and the values in it correspond to the values stored in the string. The returned array is not required to be null-terminated. If empty() returns true, the pointer is a non-null pointer that should not be dereferenced. (until C++11) The returned array is null-terminated, that is, data() and c_str() perform the same func

std::make_exception_ptr

Defined in header <exception> template< class E > std::exception_ptr make_exception_ptr( E e ); (since C++11) Creates an std::exception_ptr that holds a reference to a copy of e. This is done as if executing the following code: try { throw e; } catch(...) { return std::current_exception(); } Parameters (none). Return value An instance of std::exception_ptr holding a reference to the copy of e, or to an instance of std::bad_alloc or to an instance of std:

direct initialization

Initializes an object from explicit set of constructor arguments. Syntax T object ( arg ); T object ( arg1, arg2, ... ); (1) T object { arg }; T object { arg1, arg2, ... }; (2) (since C++11) T ( other ) T ( arg1, arg2, ... ); (3) static_cast< T >( other ) (4) new T(args, ...) (5) Class::Class() : member(args, ...) {... (6) [arg](){... (7) (since C++11) Explanation Direct initialization is performed in the following situations: 1) in

integer literal

Allows values of integer type to be used in expressions directly. Syntax An integer literal is a primary expression of the form. decimal-literal integer-suffix(optional) (1) octal-literal integer-suffix(optional) (2) hex-literal integer-suffix(optional) (3) binary-literal integer-suffix(optional) (4) (since C++14) where. decimal-literal is a non-zero decimal digit (1, 2, 3, 4, 5, 6, 7, 8, 9), followed by zero or more decimal digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)

std::basic_regex

Defined in header <regex> template < class CharT, class Traits = std::regex_traits<CharT> > class basic_regex; (since C++11) The class template basic_regex provides a general framework for holding regular expressions. Several specializations for common character types are provided: Defined in header <regex> Type Definition regex basic_regex<char> wregex basic_regex<wchar_t> Member types Member type Definition va

iterator

This header is part of the iterator library. Classes Primitives iterator_traits provides uniform interface to the properties of an iterator (class template) input_iterator_tagoutput_iterator_tagforward_iterator_tagbidirectional_iterator_tagrandom_access_iterator_tag empty class types used to indicate iterator categories (class) iterator the basic iterator (class template) Adaptors reverse_iterator iterator adaptor for reverse-order traversal (class template)

std::geometric_distribution::param

param_type param() const; (1) (since C++11) void param( const param_type& params ); (2) (since C++11) Manages the associated distribution parameter set. 1) Returns the associated parameter set. 2) Sets the associated parameter set to params. Parameters params - new contents of the associated parameter set Return value 1) The associated parameter set. 2) (none). Complexity Constant.

std::seed_seq::size

std::size_t size() const; (since C++11) Returns the size of the stored initial seed sequence. Parameters (none). Return value The size of the private container that was populated at construction time. Complexity Constant time. Exeptions (none) (until C++17) noexcept specification: noexcept (since C++17) Example #include <random> #include <iostream> int main() { std::seed_seq s1 = {-1, 0, 1}; std::cout << s1.size() << '\n'; } Output: 3

std::extreme_value_distribution

Defined in header <random> template< class RealType = double > class extreme_value_distribution; (since C++11) Produces random numbers according to the extreme value distribution (it is also known as Gumbel Type I, log-Weibull, Fisher-Tippett Type I): p(x;a,b) = 1b exp⎛⎜⎝ a-xb - exp⎛⎜⎝ a-xb ⎞⎟⎠⎞⎟⎠ std::extreme_value_distribution satisfies all requirements of RandomNumberDistribution. Template parameters RealType - The result type generated by the gene

std::list::merge

void merge( list& other ); (1) void merge( list&& other ); (1) (since C++11) template <class Compare> void merge( list& other, Compare comp ); (2) template <class Compare> void merge( list&& other, Compare comp ); (2) (since C++11) Merges two sorted lists into one. The lists should be sorted into ascending order. No elements are copied. The container other becomes empty after the operation. The function does nothing if this == &