noexcept specifier

Specifies whether a function will throw exceptions or not. Syntax noexcept (1) noexcept(expression) (2) 1) Same as noexcept ( true ) 2) If expression evaluates to true, the function is declared to not throw any exceptions. expression - constant expression, contextually convertible to bool Explanation The noexcept-specification (just like dynamic exception specification) can appear as a part of a lambda declarator or a top-level function declarator when declaring f

Null-terminated wide strings

A null-terminated wide string is a sequence of valid wide characters, ending with a null character. Functions Character classification Defined in header <cwctype> iswalnum checks if a wide character is alphanumeric (function) iswalpha checks if a wide character is alphabetic (function) iswlower checks if a wide character is lowercase (function) iswupper checks if a wide character is an uppercase character (function) iswdigit checks if a wide character i

noexcept

Usage noexcept operator noexcept specifier

std::shared_timed_mutex::try_lock_for

template< class Rep, class Period > bool try_lock_for( const std::chrono::duration<Rep,Period>& timeout_duration ); (since C++14) Tries to lock the mutex. Blocks until specified timeout_duration has elapsed or the lock is acquired, whichever comes first. On successful lock acquisition returns true, otherwise returns false. If timeout_duration is less or equal timeout_duration.zero(), the function behaves like try_lock(). A steady clock is used to measure the duration. Th

C memory management library

Functions Defined in header <cstdlib> malloc allocates memory (function) calloc allocates and zeroes memory (function) realloc expands previously allocated memory block (function) free deallocates previously allocated memory (function) See also C documentation for C memory management library

LiteralType

Specifies that a type is a literal type. Literal types are the types of constexpr variables and they can be constructed, manipulated, and returned from constexpr functions. Note, that the standard doesn't define a named requirement or concept with this name. This is a type category defined by the core language. It is included here as concept only for consistency. Requirements A literal type is any of the following: possibly cv-qualified (since C++17) void (so that constexpr functions can r

attribute specifier sequence(since C++11)

Introduces implementation-defined attributes for types, objects, code, etc. [[ attr]] [[attr1, attr2, attr3(args)]] [[namespace::attr(args)]] alignas_specifier Explanation Attributes provide the unified standard syntax for implementation-defined language extensions, such as the GNU and IBM language extensions __attribute__((...)), Microsoft extension __declspec(), etc. An attribute can be used almost everywhere in the C++ program, and can be applied to almost everything: to types, to v

std::numeric_limits::has_denorm

static const std::float_denorm_style has_denorm (until C++11) static constexpr std::float_denorm_style has_denorm (since C++11) The value of std::numeric_limits<T>::has_denorm identifies the floating-point types that support subnormal values. Standard specializations T value of std::numeric_limits<T>::has_denorm /* non-specialized */ std::denorm_absent bool std::denorm_absent char std::denorm_absent signed char std::denorm_absent unsigned char

std::stack::top

reference top(); const_reference top() const; Returns reference to the top element in the stack. This is the most recently pushed element. This element will be removed on a call to pop(). Effectively calls c.back(). Parameters (none). Return value Reference to the last element. Complexity Constant. Example #include <stack> #include <iostream> int main() { std::stack<int> s; s.push( 2 ); s.push( 6 ); s.push( 51 ); std::cou

AllocatorAwareContainer

An AllocatorAwareContainer is a Container that holds an instance of an Allocator and uses that instance to allocate and deallocate memory in all of its member functions. The following rules apply to object construction. Copy constructors of AllocatorAwareContainers obtain their instances of the allocator by calling std::allocator_traits<allocator_type>::select_on_container_copy_construction on the allocator of the container being copied. Move constructors obtain their instances of allo