std::char_traits::eq

(1) static bool eq( char_type a, char_type b ); (until C++11) static constexpr bool eq( char_type a, char_type b ); (since C++11) (2) static bool lt( char_type a, char_type b ); (until C++11) static constexpr bool lt( char_type a, char_type b ); (since C++11) Compares two characters. 1) Compares a and b for equality. 2) Compares a and b in such a way that they are totally ordered. For the char specialization, eq and lt are defined identically to the built-in operato

std::time_get::date_order

Defined in header <locale> public: dateorder date_order() const; (1) protected: virtual dateorder do_date_order() const; (2) 1) Public member function, calls the protected virtual member function do_date_order of the most derived class. 2) Returns a value of type std::time_base::dateorder, which describes the default date format used by this locale (expected by get_date() and produced by std::strftime() with format specifier '%x'). The valid values (inherited from s

std::basic_istream::gcount

std::streamsize gcount() const; Returns the number of characters extracted by the last unformatted input operation. The following member functions of basic_istream change the value of subsequent gcount() calls: move constructor swap() get() getline() ignore() read() readsome() operator>>(basic_streambuf*) The following functions set gcount() to zero: constructor putback() unget() peek() Parameters (none). Return value The number of characters extr

std::is_class

Defined in header <type_traits> template< class T > struct is_class; (since C++11) Checks whether T is a class or struct type. Provides the member constant value which is equal to true, if T is an class or struct type (but not union). Otherwise, value is equal to false. Template parameters T - a type to check Helper variable template template< class T > constexpr bool is_class_v = is_class<T>::value; (since C++17) Inherited from

std::basic_ostream::swap

protected: void swap(basic_ostream& rhs); (since C++11) Calls basic_ios::swap(rhs) to swap all data members of the base class, except for rdbuf(), between *this and rhs. This swap function is protected: it is called by the swap functions of the swappable output stream classes std::basic_ofstream and std::basic_ostringstream, which know how to correctly swap the associated streambuffers. Parameters rhs - a basic_ostream of the same type to swap with Example #include &

std::set::empty

bool empty() const; Checks if the container has no elements, i.e. whether begin() == end(). Parameters (none). Return value true if the container is empty, false otherwise. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. Example The following code uses empty to check if a std::set<int> contains any elements: #include <set> #include <iostream> int main() { std::set<int> numbers; std:

std::unordered_multiset::bucket_count

size_type bucket_count() const; (since C++11) Returns the number of buckets in the container. Parameters (none). Return value The number of buckets in the container. Complexity Constant. See also bucket_size returns the number of elements in specific bucket (public member function) max_bucket_count returns the maximum number of buckets (public member function)

std::list::erase

(1) iterator erase( iterator pos ); (until C++11) iterator erase( const_iterator pos ); (since C++11) (2) iterator erase( iterator first, iterator last ); (until C++11) iterator erase( const_iterator first, const_iterator last ); (since C++11) Removes specified elements from the container. 1) Removes the element at pos. 2) Removes the elements in the range [first; last). References and iterators to the erased elements are invalidated. Other references and iterators a

operators (std::negative_binomial_distribution)

template< class ResultType > bool operator==( const negative_binomial_distribution<ResultType>& lhs, const negative_binomial_distribution<ResultType>& rhs ); (1) template< class ResultType > bool operator!=( const negative_binomial_distribution<ResultType>& lhs, const negative_binomial_distribution<ResultType>& rhs ); (2) Compares two distribution objects. Two distribution objects are equal when

operators (std::negative_binomial_distribution)

template< class CharT, class Traits, class ResultType > std::basic_ostream<CharT,Traits>& operator<<( std::basic_ostream<CharT,Traits>& ost, const negative_binomial_distribution<ResultType>& d ); (1) template< class CharT, class Traits, class ResultType > std::basic_istream<CharT,Traits>& operator>>( std::basic_istream<CharT,Traits>& ist,