C numeric limits interface

See also std::numeric_limits interface. Defined in header <cstdint> PTRDIFF_MIN (C++11) minimum value of object of std::ptrdiff_t type (macro constant) PTRDIFF_MAX (C++11) maximum value of object of std::ptrdiff_t type (macro constant) SIZE_MAX (C++11) maximum value of object of std::size_t type (macro constant) SIG_ATOMIC_MIN (C++11) minimum value of object of std::sig_atomic_t type (macro constant) SIG_ATOMIC_MAX (C++11) maximum value of object of std::si

goto statement

Transfers control unconditionally. Used when it is otherwise impossible to transfer control to the desired location using other statements. Syntax attr(optional) goto label ; Explanation The goto statement transfers control to the location specified by label. The goto statement must be in the same function as the label it is referring, it may appear before or after the label. If transfer of control exits the scope of any automatic variables (e.g. by jumping backwards to a point be

std::basic_regex

Defined in header <regex> template < class CharT, class Traits = std::regex_traits<CharT> > class basic_regex; (since C++11) The class template basic_regex provides a general framework for holding regular expressions. Several specializations for common character types are provided: Defined in header <regex> Type Definition regex basic_regex<char> wregex basic_regex<wchar_t> Member types Member type Definition va

iterator

This header is part of the iterator library. Classes Primitives iterator_traits provides uniform interface to the properties of an iterator (class template) input_iterator_tagoutput_iterator_tagforward_iterator_tagbidirectional_iterator_tagrandom_access_iterator_tag empty class types used to indicate iterator categories (class) iterator the basic iterator (class template) Adaptors reverse_iterator iterator adaptor for reverse-order traversal (class template)

std::binary_function

Defined in header <functional> template< class Arg1, class Arg2, class Result > struct binary_function; (until C++17)(deprecated since c++11) binary_function is a base class for creating function objects with two arguments. binary_function does not define operator(); it is expected that derived classes will define this. binary_function provides only three types - first_argument_type, second_argument_type and result_type - defined by the template parameter

std::seed_seq::size

std::size_t size() const; (since C++11) Returns the size of the stored initial seed sequence. Parameters (none). Return value The size of the private container that was populated at construction time. Complexity Constant time. Exeptions (none) (until C++17) noexcept specification: noexcept (since C++17) Example #include <random> #include <iostream> int main() { std::seed_seq s1 = {-1, 0, 1}; std::cout << s1.size() << '\n'; } Output: 3

std::condition_variable::notify_one

void notify_one(); (since C++11) If any threads are waiting on *this, calling notify_one unblocks one of the waiting threads. Parameters (none). Return value (none). Exceptions noexcept specification: noexcept Notes The effects of notify_one()/notify_all() and wait()/wait_for()/wait_until() take place in a single total order, so it's impossible for notify_one() to, for example, be delayed and unblock a thread that started waiting just after the call to notify_one() was mad

std::basic_stringstream

Defined in header <sstream> template< class CharT, class Traits = std::char_traits<CharT> > class basic_stringstream; (until C++11) template< class CharT, class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT> > class basic_stringstream; (since C++11) The class template std::basic_stringstream implements input/output operations on memory (std::basic_string) based streams. It essentially wra

std::reference_wrapper

Defined in header <functional> template< class T > class reference_wrapper; (since C++11) std::reference_wrapper is a class template that wraps a reference in a copyable, assignable object. It is frequently used as a mechanism to store references inside standard containers (like std::vector) which cannot normally hold references. Specifically, std::reference_wrapper is a CopyConstructible and CopyAssignable wrapper around a reference to object or reference to function

std::acos(std::valarray)

Defined in header <valarray> template< class T > valarray<T> acos( const valarray<T>& va ); For each element in va computes arc cosine of the value of the element. Parameters va - value array to apply the operation to Return value Value array containing arc cosines of the values in va. Notes Unqualified function (acos) is used to perform the computation. If such function is not available, std::acos is used due to argument dependent loo