std::stack

Defined in header <stack> template< class T, class Container = std::deque<T> > class stack; The std::stack class is a container adapter that gives the programmer the functionality of a stack - specifically, a FILO (first-in, last-out) data structure. The class template acts as a wrapper to the underlying container - only a specific set of functions is provided. The stack pushes and pops the element from the back of the underlying container, known as the

std::map::insert_or_assign

template <class M> pair<iterator, bool> insert_or_assign(const key_type& k, M&& obj); (1) (since C++17) template <class M> pair<iterator, bool> insert_or_assign(key_type&& k, M&& obj); (2) (since C++17) template <class M> iterator insert_or_assign(const_iterator hint, const key_type& k, M&& obj); (3) (since C++17) template <class M> iterator insert_or_assign(const_iterator hint, key_type&& k,

std::wcslen

Defined in header <cwchar> std::size_t wcslen( const wchar_t* str ); Returns the length of a wide string, that is the number of non-null wide characters that precede the terminating null wide character. The behavior is undefined if there is no null character in the wide character array pointed to by str. Parameters str - pointer to the null-terminated wide string to be examined Return value The length of the null-terminated wide string str. Example #inclu

std::timed_mutex

Defined in header <mutex> class timed_mutex; (since C++11) The timed_mutex class is a synchronization primitive that can be used to protect shared data from being simultaneously accessed by multiple threads. In a manner similar to mutex, timed_mutex offers exclusive, non-recursive ownership semantics. In addition, timed_mutex provides the ability to attempt to claim ownership of a timed_mutex with a timeout via the try_lock_for() and try_lock_until() methods. The timed_mute

std::condition_variable::condition_variable

condition_variable(); (1) (since C++11) condition_variable(const condition_variable&) = delete; (2) (since C++11) 1) Constructs an object of type std::condition_variable. 2) Copy constructor is deleted. Parameters (none). Exceptions 1) May throw std::system_error with std::error_condition equal to std::errc::operation_not_permitted if the thread has no privilege to create a condition variable, std::errc::resource_unavailable_try_again if a non-memory resource limitation

std::literals::chrono_literals::operator&quot;&quot;ns

Defined in header <chrono> constexpr std::chrono::nanoseconds operator "" ns(unsigned long long nsec); (1) (since C++14) constexpr std::chrono::duration</*unspecified*/, std::nano> operator "" ns(long double nsec); (2) (since C++14) Forms a std::chrono::duration literal representing nanoseconds. 1) integer literal, returns exactly std::chrono::nanoseconds(nsec) 2) floating-point literal, returns a floating-point duration equivalent

std::is_polymorphic

Defined in header <type_traits> template< class T > struct is_polymorphic; (since C++11) If T is a polymorphic class (that is, a non-union class that declares or inherits at least one virtual function), 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. Template parameters T - a type to check Helper variable template templa

std::queue::swap

void swap( queue& other ); (since C++11) Exchanges the contents of the container adaptor with those of other. Effectively calls using std::swap; swap(c, other.c); Parameters other - container adaptor to exchange the contents with Return value (none). Exceptions noexcept specification: noexcept(noexcept(std::swap(c, other.c))) Complexity Same as underlying container (typically constant). See also std::swap(std::queue) specializes the std::swap algorithm (

std::scoped_allocator_adaptor::outer_allocator

Defined in header <scoped_allocator> outer_allocator_type& outer_allocator(); (1) (since C++11) const outer_allocator_type& outer_allocator() const; (2) (since C++11) Obtains a reference to the outer allocator used to declare this class. 1) returns static_cast<OuterAlloc&>(*this). 2) returns static_cast<const OuterAlloc&>(*this). Parameters (none). Return value A reference to OuterAlloc. Exceptions 1-2) noexcept specification: n

std::chi_squared_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)