std::function::target

template< class T > T* target(); (1) (since C++11) template< class T > const T* target() const; (2) (since C++11) Returns a pointer to the stored callable function target. Parameters (none). Return value A pointer to the stored function if target_type() == typeid(T), otherwise a null pointer. Exceptions noexcept specification: noexcept Example #include <functional> #include <iostream> int f(int, int) { return 1; } int g(int, int) { retur

std::uses_allocator&lt;std::priority_queue&gt;

template< class T, class Container, class Compare,class Alloc > struct uses_allocator<priority_queue<T,Compare,Container>,Alloc> : std::uses_allocator<Container, Alloc>::type { }; (since C++11) Provides a transparent specialization of the std::uses_allocator type trait for std::priority_queue: the container adaptor uses allocator if and only if the underlying container does. Inherited from std::integral_constant Member constants value [static] tr

std::exponential_distribution::lambda

RealType lambda() const; (since C++11) Returns the λ distribution parameter the distribution was constructed with. The parameter defines the rate of events, per unit. The default value is 1.0. Parameters (none). Return value Floating point value identifying the rate of events per unit. See also param gets or sets the distribution parameter object (public member function)

std::numeric_limits::min_exponent10

static const int min_exponent10; (until C++11) static constexpr int min_exponent10; (since C++11) The value of std::numeric_limits<T>::min_exponent10 is the lowest negative number n such that 10n is a valid normalized value of the floating-point type T. Standard specializations T value of std::numeric_limits<T>::min_exponent10 /* non-specialized */ ​0​ bool ​0​ char ​0​ signed char ​0​ unsigned char ​0​ wchar_t ​0​ char16_t ​0​ char3

std::unique_ptr::operator[]

T& operator[](size_t i) const; (since C++11) operator[] provides access to elements of an array managed by a unique_ptr. The parameter i is required to be a valid array index. Parameters i - the index of the element to be returned Return value Returns the element at index i, i.e. get()[i]. Example #include <iostream> #include <memory> int main() { const int size = 10; std::unique_ptr<int[]> fact(new int[size]); for (int i = 0; i

std::basic_ostream::basic_ostream

explicit basic_ostream( std::basic_streambuf<CharT, Traits>* sb ); (1) protected: basic_ostream( const basic_ostream& rhs ) = delete; (2) (since C++11) protected: basic_ostream( basic_ostream&& rhs ); (3) (since C++11) 1) Constructs the basic_ostream object, assigning initial values to the base class by calling basic_ios::init(sb). 2) The copy constructor is protected, and is deleted. Output streams are not copyable. 3) The move constructor uses basic_ios&l

continue statement

Causes the remaining portion of the enclosing for, range-for, while or do-while loop body skipped. Used when it is otherwise awkward to ignore the remaining portion of the loop using conditional statements. Syntax attr(optional) continue ; Explanation The continue statement causes a jump, as if by goto to the end of the loop body (it may only appear within the loop body of for, range-for, while, and do-while loops). More precisely, For while loop, it acts as. while (/* ... */) {

std::numpunct::thousands_sep

Defined in header <locale> public: char_type thousands_sep() const; (1) protected: virtual char_type do_thousands_sep() const; (2) 1) Public member function, calls the member function do_thousands_sep of the most derived class. 2) Returns the character to be used as the separator between digit groups when parsing or formatting integers and integral parts of floating-point values. Return value The object of type char_type to use as the thousands separator. The st

std::map::lower_bound

iterator lower_bound( const Key& key ); (1) const_iterator lower_bound( const Key& key ) const; (1) template< class K > iterator lower_bound(const K& x); (2) (since C++14) template< class K > const_iterator lower_bound(const K& x) const; (2) (since C++14) 1) Returns an iterator pointing to the first element that is not less than key. 2) Returns an iterator pointing to the first element that compares not less to the value x. This overload

std::feupdatedenv

Defined in header <cfenv> int feupdateenv( const std::fenv_t* envp ) (since C++11) First, remembers the currently raised floating-point exceptions, then restores the floating-point environment from the object pointed to by envp (similar to std::fesetenv), then raises the floating-point exceptions that were saved. This function may be used to end the non-stop mode established by an earlier call to std::feholdexcept. Parameters envp - pointer to the object of type std