cstdalign

This header was originally in the C standard library as <stdalign.h>. C compatibility header. __alignas_is_defined (C++11) C compatibility macro constant, expands to integer constant 1 (macro constant)

std::map::count

size_type count( const Key& key ) const; (1) template< class K > size_type count( const K& x ) const; (2) (since C++14) 1) Returns the number of elements with key key, which is either 1 or 0 since this container does not allow duplicates 2) Returns the number of elements with key that compares equivalent to the value x. This overload only participates in overload resolution if the qualified-id Compare::is_transparent is valid and denotes a type. They allow calling

std::bit_and

Defined in header <functional> template< class T > struct bit_and; (until C++14) template< class T = void > struct bit_and; (since C++14) Function object for performing bitwise AND. Effectively calls operator& on type T. Specializations The standard library provides a specialization of std::bit_and when T is not specified, which leaves the parameter types and return type to be deduced. bit_and<void> function object implementing x & y

std::thread::hardware_concurrency

static unsigned hardware_concurrency(); (since C++11) Returns the number of concurrent threads supported by the implementation. The value should be considered only a hint. Parameters (none). Return value number of concurrent threads supported. If the value is not well defined or not computable, returns ​0​. Exceptions noexcept specification: noexcept Example #include <iostream> #include <thread> int main() { unsigned int n = std::thread::hardware_concur

operators (std::complex)

Defined in header <complex> template <class T, class CharT, class Traits> std::basic_ostream<CharT, Traits>& operator<<(std::basic_ostream<CharT, Traits>& os, const std::complex<T>& x); (1) template <class T, class CharT, class Traits> std::basic_istream<CharT, Traits>& operator>>(std::basic_istream<CharT, Traits>& is, std::complex<T>& x); (2)

std::is_empty

Defined in header <type_traits> template< class T > struct is_empty; (since C++11) If T is an empty type (that is, a non-union class type with no non-static data members other than bit-fields of size 0, no virtual functions, no virtual base classes, and no non-empty base classes), provides the member constant value equal true. For any other type, value is false. If T is a non-union class type, T shall be a complete type; otherwise, the behavior is undefined. Templat

std::fegetexceptflag

Defined in header <cfenv> int fegetexceptflag( std::fexcept_t* flagp, int excepts ); (1) (since C++11) int fesetexceptflag( const std::fexcept_t* flagp, int excepts ); (2) (since C++11) 1) Attempts to obtain the full contents of the floating-point exception flags that are listed in the bitmask argument excepts, which is a bitwise OR of the floating point exception macros. 2) Attempts to copy the full contents of the floating-point exception flags that are listed in ex

std::fixed

Defined in header <ios> std::ios_base& fixed( std::ios_base& str ); (1) std::ios_base& scientific( std::ios_base& str ); (2) std::ios_base& hexfloat( std::ios_base& str ); (3) (since C++11) std::ios_base& defaultfloat( std::ios_base& str ); (4) (since C++11) Modifies the default formatting for floating-point input/output. 1) Sets the floatfield of the stream str to fixed as if by calling str.setf(std::ios_base::fixed, std::

std::get_money

Defined in header <iomanip> template< class MoneyT > /*unspecified*/ get_money( MoneyT& mon, bool intl = false ); (since C++11) When used in an expression in >> get_money(mon, intl), parses the character input as a monetary value, as specified by the std::money_get facet of the locale currently imbued in in, and stores the value in mon. This function behaves as a FormattedInputFunction. Parameters mon - variable where monetary value will be written.

std::deque::rend

reverse_iterator rend(); const_reverse_iterator rend() const; const_reverse_iterator crend() const; (since C++11) Returns a reverse iterator to the element following the last element of the reversed container. It corresponds to the element preceding the first element of the non-reversed container. This element acts as a placeholder, attempting to access it results in undefined behavior. Parameters (none). Return value Reverse iterator to the element following the last