std::numeric_limits::max_digits10

static constexpr int max_digits10 (since C++11) The value of std::numeric_limits<T>::max_digits10 is the number of base-10 digits that are necessary to uniquely represent all distinct values of the type T, such as necessary for serialization/deserialization to text. This constant is meaningful for all floating-point types. Standard specializations T value of std::numeric_limits<T>::max_digits10 /* non-specialized */ ​0​ bool ​0​ char ​0​ signed char ​0​

std::shared_mutex::lock

void lock(); (since C++17) Locks the mutex. If another thread has already locked the mutex, a call to lock will block execution until the lock is acquired. If lock is called by a thread that already owns the mutex in any mode (shared or exclusive), the behavior is undefined. Prior unlock() operation on the same mutex synchronizes-with (as defined in std::memory_order) this operation. Parameters (none). Return value (none). Exceptions Throws std::system_error when errors occur,

std::unordered_multimap::emplace

template< class... Args > iterator emplace( Args&&... args ); (since C++11) Inserts a new element into the container by constructing it in-place with the given args . Careful use of emplace allows the new element to be constructed while avoiding unnecessary copy or move operations. The constructor of the new element (i.e. std::pair<const Key, T>) is called with exactly the same arguments as supplied to emplace, forwarded via std::forward<Args>(args).... If reha

std::regex_search

Defined in header <regex> template< class BidirIt, class Alloc, class CharT, class Traits > bool regex_search( 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 CharT, class Alloc,

std::basic_string::resize

void resize( size_type count ); (1) void resize( size_type count, CharT ch ); (2) Resizes the string to contain count characters. If the current size is less than count, additional characters are appended. If the current size is greater than count, the string is reduced to its first count elements. The first version initializes new characters to CharT(), the second version initializes new characters to ch. Parameters count - new size of the string ch - character to i

std::literals::complex_literals::operators

Defined in header <complex> constexpr complex<double> operator""i(long double arg); constexpr complex<double> operator""i(unsigned long long arg); (1) (since C++14) constexpr complex<float> operator""if(long double arg); constexpr complex<float> operator""if(unsigned long long arg); (2) (since C++14) constexpr complex<long double> operator""il(long double arg); constexpr complex<long double> operator""il(unsigned long long arg); (3

std::rend

Defined in header <iterator> template< class C > auto rend( C& c ) -> decltype(c.rend()); (1) (since C++14) template< class C > auto rend( const C& c ) -> decltype(c.rend()); (1) (since C++14) template< class T, size_t N > reverse_iterator<T*> rend( T (&array)[N] ); (2) (since C++14) template< class C > auto crend( const C& c ) -> decltype(std::rend(c)); (3) (since C++14) Returns an iterator to the

std::bitset::count

size_t count() const; Returns the number of bits that are set to true. Parameters (none). Return value number of bits that are set to true. Example #include <iostream> #include <bitset> int main() { std::bitset<8> b("00010010"); std::cout << "initial value: " << b << '\n'; // find the first unset bit size_t idx = 0; while (idx < b.size() && b.test(idx)) ++idx; // continue setting bits until half the

std::regex_replace

Defined in header <regex> template< class OutputIt, class BidirIt, class Traits, class CharT, class STraits, class SAlloc > OutputIt regex_replace( OutputIt out, BidirIt first, BidirIt last, const std::basic_regex<CharT,Traits>& re, const std::basic_string<CharT,STraits,SAlloc>& fmt, std::regex_constants::match_flag_type flags = std::re

std::deque::insert

(1) iterator insert( iterator pos, const T& value ); (until C++11) iterator insert( const_iterator pos, const T& value ); (since C++11) iterator insert( const_iterator pos, T&& value ); (2) (since C++11) (3) void insert( iterator pos, size_type count, const T& value ); (until C++11) iterator insert( const_iterator pos, size_type count, const T& value ); (since C++11) (4) template< class InputIt > void insert( iterator pos, InputIt f