std::move_if_noexcept

Defined in header <utility> template< class T > typename std::conditional< !std::is_nothrow_move_constructible<T>::value && std::is_copy_constructible<T>::value, const T&, T&& >::type move_if_noexcept(T& x); (since C++11) (until C++14) template< class T > constexpr typename std::conditional< !std::is_nothrow_move_constructible<T>::value && std::is_copy_constructible<T>::value,

std::equal_to&lt;void&gt;

Defined in header <functional> template<> class equal_to<void>; (since C++14) std::equal_to<> is a specialization of std::equal_to with parameter and return type deduced. Member types Member type Definition is_transparent /* unspecified */ Member functions operator() tests if the two arguments compare equal (public member function) std::equal_to<>::operator() template< class T, class U> constexpr auto operator()( T&

std::error_condition::error_condition

error_condition(); (1) (since C++11) error_condition( const error_condition& other ); (2) (since C++11)(implicitly declared) error_condition( int val, const error_category& cat ); (3) (since C++11) template< class ErrorConditionEnum > error_condition( ErrorConditionEnum e ); (4) (since C++11) Constructs new error condition. 1) Default constructor. Initializes the error condition with generic category and error code ​0​. 2) Copy constructor. Initializes

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

Error directive

Shows given message and renders program ill-formed. Syntax #error error_message Explanation After encountering #error directive, diagnostic message error_message is shown and the program is rendered ill-formed (the compilation is stopped). error_message can consist of several words not necessarily in quotes. See also C documentation for Error directive

std::iswprint

Defined in header <cwctype> int iswprint( std::wint_t ch ); Checks if the given wide character can be printed, i.e. it is either a number (0123456789), an uppercase letter (ABCDEFGHIJKLMNOPQRSTUVWXYZ), a lowercase letter (abcdefghijklmnopqrstuvwxyz), a punctuation character(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~), space or any printable character specific to the current C locale. Parameters ch - wide character Return value Non-zero value if the wide charac

alignof operator

Queries alignment requirements of a type. Syntax alignof( type-id ) Returns a value of type std::size_t. Explanation Returns the alignment, in bytes, required for any instance of the type indicated by type-id, which is either complete type, an array type, or a reference type. If the type is reference type, the operator returns the alignment of referenced type; if the type is array type, alignment requirement of the element type is returned. Keywords alignof. Notes See alignm

std::multimap::value_compare

class value_compare; std::multimap::value_compare is a function object that compares objects of type std::multimap::value_type (key-value pairs) by comparing of the first components of the pairs. Member types Type Definition result_type bool first_argument_type value_type second_argument_type value_type Protected member objects Compare comp the stored comparator (protected member object) Member functions (constructor) constructs a new value_compare o

std::swap(std::set)

template< class Key, class Compare, class Alloc > void swap( set<Key,Compare,Alloc>& lhs, set<Key,Compare,Alloc>& rhs ); Specializes the std::swap algorithm for std::set. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs). Parameters lhs, rhs - containers whose contents to swap Return value (none). Complexity Constant. Exceptions noexcept specification: noexcept(noexcept(lhs.swap(rhs))) (since C++17) See also swap

operator&lt;&lt;(std::thread::id)

template< class CharT, class Traits > std::basic_ostream<CharT,Traits>& operator<<( std::basic_ostream<CharT,Traits>& ost, thread::id id ); (since C++11) Writes a textual representation of a thread identifier id to the output stream ost. If two thread identifiers compare equal, they have identical textual representations; if they do not compare equal, their representations are distinct. Parameters ost - output stream to insert the data into