Default arguments

Allows a function to be called without providing one or more trailing arguments. Indicated by using the following syntax for a parameter in the parameter-list of a function declaration. attr(optional) decl-specifier-seq declarator = initializer (1) attr(optional) decl-specifier-seq abstract-declarator(optional) = initializer (2) Default arguments are used in place of the missing trailing arguments in a function call: void point(int x = 3, int y = 4); point(1,2); // calls point

std::wcscpy

Defined in header <cwchar> wchar_t *wcscpy( wchar_t *dest, const wchar_t *src ); Copies the wide string pointed to by src (including the terminating null wide character) to wide character array pointed to by dest. If the strings overlap, the behavior is undefined. Parameters dest - pointer to the wide character array to copy to src - pointer to the null-terminated wide string to copy from Return value dest. Example #include <iostream> #include

std::istreambuf_iterator::istreambuf_iterator

(1) istreambuf_iterator(); (until C++11) constexpr istreambuf_iterator(); (since C++11) istreambuf_iterator( std::basic_istream<CharT,Traits>& is ); (2) istreambuf_iterator( std::basic_streambuf<CharT,Traits>* s ); (3) istreambuf_iterator( const istreambuf_iterator& ) = default; (4) (since C++11) 1) Constructs an end-of-stream iterator. 2) Initializes the iterator and stores the value of is.rdbuf() in a data member. If is.rdbuf() is null, th

std::uses_allocator&lt;std::promise&gt;

template< class R, class Alloc > struct uses_allocator<std::promise<R>, Alloc> : std::true_type { }; (since C++11) Provides a specialization of the std::uses_allocator type trait for std::promise. Inherited from std::integral_constant Member constants value [static] true (public static member constant) Member functions operator bool converts the object to bool, returns value (public member function) operator() (C++14) returns value (public membe

std::valarray::operators

valarray<T> operator+=( const valarray<T>& v ); valarray<T> operator-=( const valarray<T>& v ); valarray<T> operator*=( const valarray<T>& v ); valarray<T> operator/=( const valarray<T>& v ); valarray<T> operator%=( const valarray<T>& v ); valarray<T> operator&=( const valarray<T>& v ); valarray<T> operator|=( const valarray<T>& v ); valarray<T> operator^=( const valarray&l

std::mask_array::mask_array

mask_array( const mask_array& other ); mask_array() = delete; Constructs a mask_array from another mask_array other. The default constructor is implicitly deleted. Parameters other - mask_array to initialize with

std::lognormal_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)

std::unordered_multiset::emplace

template< class... Args > iterator emplace( Args&&... args ); (since C++11) Inserts a new element into the container by constructing it in-place with the given args . Careful use of emplace allows the new element to be constructed while avoiding unnecessary copy or move operations. The constructor of the new element is called with exactly the same arguments as supplied to emplace, forwarded via std::forward<Args>(args).... If rehashing occurs due to the insertion, al

std::independent_bits_engine::independent_bits_engine

independent_bits_engine(); (1) (since C++11) explicit independent_bits_engine( result_type s ); (2) (since C++11) template< class Sseq > explicit independent_bits_engine( Sseq& seq ); (3) (since C++11) explicit independent_bits_engine( const Engine& e ); (4) (since C++11) explicit independent_bits_engine( Engine&& e ); (5) (since C++11) Constructs new pseudo-random engine adaptor. 1) Default constructor. The underlying engine is also defaul

std::independent_bits_engine::max

static constexpr result_type max(); (since C++11) Returns the maximum value potentially generated by the engine adaptor. This value is equal to 2w-1. Parameters (none). Return value The maximum potentially generated value. Complexity Constant. See also min [static] gets the smallest possible value in the output range (public static member function)