partial template specialization

Allows customizing class templates for a given category of template arguments. Syntax template < parameter-list > class-key class-head-name < argument-list > declaration where class-head-name identifies the name of a previously declared class template. This declaration must be in the same namespace as the primary template definition which it specializes. For example, template<class T1, class T2, int I> class A {}; // primary template template<class T, int I>

std::char_traits

Defined in header <string> template< class CharT > class char_traits; The char_traits class is a traits class template that abstracts basic character and string operations for a given character type. The defined operation set is such that generic algorithms almost always can be implemented in terms of it. It is thus possible to use such algorithms with almost any possible character or string type, just by supplying customized char_traits class. The char_traits cl

C numeric limits interface

See also std::numeric_limits interface. Defined in header <cstdint> PTRDIFF_MIN (C++11) minimum value of object of std::ptrdiff_t type (macro constant) PTRDIFF_MAX (C++11) maximum value of object of std::ptrdiff_t type (macro constant) SIZE_MAX (C++11) maximum value of object of std::size_t type (macro constant) SIG_ATOMIC_MIN (C++11) minimum value of object of std::sig_atomic_t type (macro constant) SIG_ATOMIC_MAX (C++11) maximum value of object of std::si

std::binomial_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. Example #include <iostream> #include <random> int main() {

std::set::erase

(1) void erase( iterator pos ); (until C++11) iterator erase( iterator pos ); (since C++17) iterator erase( const_iterator pos ); (since C++11) (2) void erase( iterator first, iterator last ); (until C++11) iterator erase( const_iterator first, const_iterator last ); (since C++11) size_type erase( const key_type& key ); (3) Removes specified elements from the container. 1) Removes the element at pos. 2) Removes the elements in the range [first; last),

std::make_tuple

Defined in header <tuple> template< class... Types > tuple<VTypes...> make_tuple( Types&&... args ); (since C++11) (until C++14) template< class... Types > constexpr tuple<VTypes...> make_tuple( Types&&... args ); (since C++14) Creates a tuple object, deducing the target type from the types of arguments. For each Ti in Types..., the corresponding type Vi in Vtypes... is std::decay<Ti>::type unless application of std::decay

std::mersenne_twister_engine::seed

void seed( result_type value = default_seed ); (1) (since C++11) template< class Sseq > void seed( Sseq& seq ); (2) (since C++11) Reinitializes the internal state of the random-number engine using new seed value. Parameters value - seed value to use in the initialization of the internal state seq - seed sequence to use in the initialization of the internal state Exceptions (none). Complexity Example #include <iostream> #include <rand

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::mismatch

Defined in header <algorithm> template< class InputIt1, class InputIt2 > std::pair<InputIt1,InputIt2> mismatch( InputIt1 first1, InputIt1 last1, InputIt2 first2 ); (1) template< class InputIt1, class InputIt2, class BinaryPredicate > std::pair<InputIt1,InputIt2> mismatch( InputIt1 first1, InputIt1 last1, InputIt2 first2, BinaryPredicate p ); (2) template< class InputIt1, class InputIt2 > st

Fixed width integer types

Types Defined in header <cstdint> int8_tint16_tint32_tint64_t (optional) signed integer type with width of exactly 8, 16, 32 and 64 bits respectivelywith no padding bits and using 2's complement for negative values(provided only if the implementation directly supports the type) (typedef) int_fast8_tint_fast16_tint_fast32_tint_fast64_t fastest signed integer type with width of at least 8, 16, 32 and 64 bits respectively (typedef) int_least8_tint_least16_tint_least32_tint_l