std::basic_ios::narrow

char narrow( char_type c, char dfault ) const; Converts a current locale-specific character c to its standard equivalent. The result is converted from char_type to char if needed. If no conversion can be performed, the function returns dfault. Effectively calls std::use_facet< std::ctype<char_type> >(getloc()).narrow(c, dfault);. Parameters c - character to convert dfault - character to return if the conversion was unsuccessful Return value Character conv

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

Converting constructor

A constructor that is not declared with the specifier explicit and which has one non-default parameter (until C++11) is called a converting constructor. Unlike explicit constructors, which are only considered during direct initialization (which includes explicit conversions such as static_cast), converting constructors are also considered during copy initialization, as part of user-defined conversion sequence. It is said that a converting constructor specifies an implicit conversion from the ty

using

Usage using-directives for namespaces and using-declarations for namespace members using-declarations for class members type alias and alias template declaration (since C++11)

operators (std::chi_squared_distribution)

template< class ResultType > bool operator==( const chi_squared_distribution<ResultType>& lhs, const chi_squared_distribution<ResultType>& rhs ); (1) template< class ResultType > bool operator!=( const chi_squared_distribution<ResultType>& lhs, const chi_squared_distribution<ResultType>& rhs ); (2) Compares two distribution objects. Two distribution objects are equal when parameter values and int

std::shared_ptr::get

T* get() const; (since C++11) Returns a pointer to the managed object or a null pointer if no object is being managed. Parameters (none). Return value A pointer to the managed object or null. Exceptions noexcept specification: noexcept Example #include <iostream> #include <memory> #include <string> typedef std::shared_ptr<int> IntPtr; void output(const std::string& msg, int* pInt) { std::cout << msg << *pInt << "\n";

std::regex_error::code

Defined in header <regex> std::regex_constants::error_type code() const; (since C++11) Returns the std::regex_constants::error_type that was passed to the std::regex_error constructor. See Also error_type (C++11) describes different types of matching errors (typedef) (constructor) constructs a regex_error object (public member function)

std::raw_storage_iterator::operators (int)

raw_storage_iterator& operator++(); raw_storage_iterator operator++(int); Advances the iterator. 1) Pre-increment. Returns the updated iterator. 2) Post-increment. Returns the old value of the iterator. Parameters (none). Return value 1) *this 2) The old value of the iterator.