std::declare_no_pointers

Defined in header <memory> void declare_no_pointers( char *p, std::size_t n ); (since C++11) Informs the garbage collector or leak detector that the specified memory region (n bytes beginning at the byte pointed to by p) contains no traceable pointers. If any part of the region is within an allocated object, the entire region must be contained in the same object. Parameters p - pointer to the beginning of the range n - the number of bytes in the range Ret

std::basic_stringbuf::underflow

protected: virtual int_type underflow() Reads the next character from the get area of the buffer. Specifically: 1) If the input sequence has a read position available (egptr() > gptr()), returns Traits::to_int_type(*gptr()) 2) Otherwise, if pptr() > egptr() (some characters were inserted into the stream since the last time overflow() changed egptr()) then extends the end of the get area to include the most recently inserted characters, by changing egptr() to equal pptr(), and t

std::vector::emplace_back

template< class... Args > void emplace_back( Args&&... args ); (since C++11) Appends a new element to the end of the container. The element is constructed through std::allocator_traits::construct, which typically uses placement-new to construct the element in-place at the location provided by the container. The arguments args... are forwarded to the constructor as std::forward<Args>(args).... If the new size() is greater than capacity() then all iterators and referen

std::regex_match

Defined in header <regex> template< class BidirIt, class Alloc, class CharT, class Traits > bool regex_match( BidirIt first, BidirIt last, std::match_results<BidirIt,Alloc>& m, const std::basic_regex<CharT,Traits>& e, std::regex_constants::match_flag_type flags = std::regex_constants::match_default ); (1) (since C++11) template< class BidirIt, class

std::basic_fstream::basic_fstream

basic_fstream(); (1) explicit basic_fstream( const char* filename, ios_base::openmode mode = ios_base::in|ios_base::out ); (2) explicit basic_fstream( const string& filename, ios_base::openmode mode = ios_base::in|ios_base::out ); (3) (since C++11) basic_fstream( basic_fstream&& other ); (4) (since C++11) basic_fstream( const basic_fstream& rhs) = delete; (5) (since C++11) Constructs

short

Usage short type modifier

std::gamma_distribution::reset

void reset(); (since C++11) Resets the internal state of the distribution object. After a call to this function, the next call to operator() on the distribution object will not be dependent on previous calls to operator(). Parameters (none). Return value (none). Complexity Constant.

std::integer_sequence

Defined in header <utility> template< class T, T... Ints > class integer_sequence; (since C++14) The class template std::integer_sequence represents a compile-time sequence of integers. When used as an argument to a function template, the parameter pack Ints can be deduced and used in pack expansion. Template parameters T - an integer type to use for the elements of the sequence ...Ints - a non-type parameter pack representing the sequence Member ty

std::discrete_distribution::probabilities

std::vector<double> probabilities() const; (since C++11) Obtains a std::vector<double> containing the individual probabilities of each integer that is generated by this distribution. Parameters (none). Return value An object of type std::vector<double> Example #include <iostream> #include <vector> #include <random> int main() { std::discrete_distribution<> d({40, 10, 10, 40}); std::vector<double> p = d.probabilities();

std::unordered_set::max_load_factor

float max_load_factor() const; (1) (since C++11) void max_load_factor( float ml ); (2) (since C++11) Manages the maximum load factor (number of elements per bucket). The container automatically increases the number of buckets if the load factor exceeds this threshold. 1) Returns current maximum load factor. 2) Sets the maximum load factor to ml. Parameters ml - new maximum load factor setting Return value 1) current maximum load factor. 2) none. Complexity Constan