std::seed_seq::param

template< class OutputIt > void param( OutputIt dest ) const; (since C++11) Outputs the initial seed sequence that's stored in the std::seed_seq object. Parameters dest - output iterator such that the expression *dest=rt is valid for a value rt of result_type Type requirements - OutputIt must meet the requirements of OutputIterator. Return value (none). Exceptions Throws only if an operation on dest throws. Example #include <random> #include <ios

std::piecewise_linear_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::array::max_size

constexpr size_type max_size(); (since C++11) (until C++14) constexpr size_type max_size() const; (since C++14) Returns the maximum number of elements the container is able to hold due to system or library implementation limitations, i.e. std::distance(begin(), end()) for the largest container. Parameters (none). Return value Maximum number of elements. Exceptions noexcept specification: noexcept Complexity Constant. Notes Because each std::array<T, N> is a

std::basic_filebuf::basic_filebuf

basic_filebuf(); (1) basic_filebuf( const std::basic_filebuf& rhs ) = delete; (2) (since C++11) basic_filebuf( std::basic_filebuf&& rhs ); (3) (since C++11) Contructs new std::basic_filebuf object. 1) Constructs a std::basic_filebuf object, initializing the base class by calling the default constructor of std::basic_streambuf. The created basic_filebuf is not associated with a file, and is_open() returns false. 2) The copy constructor is deleted; std::basic_fil

new

This header is part of the dynamic memory management library, in particular provides low level memory management features. Functions operator newoperator new[] allocation functions (function) operator deleteoperator delete[] deallocation functions (function) get_new_handler (C++11) obtains the current new handler (function) set_new_handler registers a new handler (function) Classes bad_alloc exception thrown when memory allocation fails (class) bad_arr

std::nothrow_t

Defined in header <new> struct nothrow_t {}; std::nothrow_t is an empty class type used to disambiguate the overloads of throwing and non-throwing allocation functions. See also nothrow an object of type nothrow_t used to select an non-throwing allocation function (constant) operator newoperator new[] allocation functions (function)

std::basic_filebuf::swap

void swap( std::basic_filebuf& rhs ); (since C++11) Swaps the state and the contents of *this and rhs. Parameters rhs - another basic_filebuf Return value (none). Notes This function is called automatically when swapping std::fstream objects, it is rarely necessary to call it directly. Example #include <fstream> #include <string> #include <iostream> int main() { std::ifstream fin("test.in"); // read-only std::ofstream fout("test.out"

std::length_error

Defined in header <stdexcept> class length_error; Defines a type of object to be thrown as exception. It reports errors that are consequence of attempt to exceed implementation defined length limits for some object. This exception is thrown by member functions of std::basic_string and std::vector::reserve. Inheritance diagram. Member functions (constructor) constructs the exception object (public member function) std::length_error::length_error explici

scoped_allocator

This header is part of the dynamic memory management library. Classes scoped_allocator_adaptor (C++11) implements multi-level allocator for multi-level containers (class template) Functions operator==operator!= compares two scoped_allocator_adaptor instances (public member function of std::scoped_allocator_adaptor) Synopsis namespace std { template <class OuterAlloc, class... InnerAlloc> class scoped_allocator_adaptor; template <class OuterA1,

Boolean literals

Syntax true (1) false (2) Explanation The Boolean literals are the keywords true and false. They are prvalues of type bool. Notes See Integral conversions for implicit conversions from bool to other types and boolean conversions for the implicit conversions from other types to bool. Example #include <iostream> int main() { std::cout << std::boolalpha << true << '\n' << false << '\n' <<