operators (std::bitset)

bool operator==( const bitset<N>& rhs ) const; (1) bool operator!=( const bitset<N>& rhs ) const; (2) 1) Returns true if all of the bits in *this and rhs are equal. 2) Returns true if any of the bits in *this and rhs are not equal. Parameters rhs - bitset to compare Return value 1) true if the value of each bit in *this equals the value of the corresponding bit in rhs, otherwise false. 2) true if !(*this == rhs), otherwise false. Example Compa

std::basic_string::back

CharT& back(); (since C++11) const CharT& back() const; (since C++11) Returns reference to the last character in the string. The behavior is undefined if empty() == true. Parameters (none). Return value reference to the last character, equivalent to operator[](size() - 1). Complexity Constant. Example #include <iostream> #include <string> int main() { { std::string s("Exemplary"); char& back = s.back(); back = 's'; std::cou

std::islower(std::locale)

Defined in header <locale> template< class charT > bool islower( charT ch, const locale& loc ); Checks if the given character is classified as a lowercase alphabetic character by the given locale's std::ctype facet. Parameters ch - character loc - locale Return value Returns true if the character is classified as lowercase, false otherwise. Possible implementation template< class charT > bool islower( charT ch, const std::locale&

std::vector::resize

void resize( size_type count, T value = T() ); (until C++11) void resize( size_type count ); (1) (since C++11) void resize( size_type count, const value_type& value ); (2) (since C++11) Resizes the container to contain count elements. If the current size is greater than count, the container is reduced to its first count elements. If the current size is less than count, additional elements are appended and initialized with copies of value. (until C++11) If the current

std::function::assign

template< class F, class Alloc > void assign( F&& f, const Alloc& alloc ); (since C++11) (until C++17) Initializes the target with f. alloc is used to allocate memory for any internal data structures that the function might use. Equivalent to function(allocator_arg, alloc, std::forward<F>(f)).swap(*this). Parameters f - callable function to initialize the target with alloc - allocator to use to allocate memory for the internal data structures R

std::unique_lock::operator bool

explicit operator bool() const; (since C++11) Checks whether *this owns a locked mutex or not. Effectively calls owns_lock(). Parameters (none). Return value true if *this has an associated mutex and has acquired ownership of it, false otherwise. Exceptions noexcept specification: noexcept See also owns_lock tests whether the lock owns its associated mutex (public member function)

std::recursive_timed_mutex::recursive_timed_mutex

recursive_timed_mutex(); (1) (since C++11) recursive_timed_mutex( const recursive_timed_mutex& ) = delete; (2) (since C++11) 1) Constructs the mutex. The mutex is in unlocked state after the call. 2) Copy constructor is deleted. Parameters (none). Exceptions std::system_error if the construction is unsuccessful.

std::type_index::hash_code

size_t hash_code() const; (since C++11) Returns the hash code of the associated std::type_info object. Equivalent to calling type_info::hash_code directly. Parameters (none). Return value The hash code of the associated type_info object. Exceptions (none) (until C++14) noexcept specification: noexcept (since C++14) Example See also std::hash<std::type_index> (C++11) hash support for std::type_index (class template specialization)

std::unordered_map::unordered_map

(1) explicit unordered_map( size_type bucket_count = /*implementation-defined*/, const Hash& hash = Hash(), const KeyEqual& equal = KeyEqual(), const Allocator& alloc = Allocator() ); (since C++11) (until C++14) unordered_map() : unordered_map( size_type(/*implementation-defined*/) {} explicit unordered_map( size_type bucket_count, const Hash& hash = Hash(),

std::numeric_limits::max

static T max(); (until C++11) static constexpr T max(); (since C++11) Returns the maximum finite value representable by the numeric type T. Meaningful for all bounded types. Return value T std::numeric_limits<T>::max() /* non-specialized */ T(); bool true char CHAR_MAX signed char SCHAR_MAX unsigned char UCHAR_MAX wchar_t WCHAR_MAX char16_t UINT_LEAST16_MAX char32_t UINT_LEAST32_MAX short SHRT_MAX unsigned short USHRT_MAX int