std::thread::get_id

std::thread::id get_id() const; (since C++11) Returns a value of std::thread::id identifying the thread associated with *this. Parameters (none). Return value A value of type std::thread::id identifying the thread associated with *this. If there is no thread associated, default constructed std::thread::id is returned. Exceptions noexcept specification: noexcept Example #include <iostream> #include <thread> #include <chrono> void foo() { std::this_

std::isspace(std::locale)

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

std::forward_list::begin

iterator begin(); (since C++11) const_iterator begin() const; (since C++11) const_iterator cbegin() const; (since C++11) Returns an iterator to the first element of the container. If the container is empty, the returned iterator will be equal to end(). Parameters (none). Return value Iterator to the first element. Exceptions noexcept specification: noexcept Complexity Constant. Example See also end cend returns an iterator to the end (public member

std::complex::imag

primary template complex<T> T imag() const; (1) (until C++14) constexpr T imag() const; (1) (since C++14) void imag( T value ); (2) specialization complex<float> float imag() const; (1) (until C++11) constexpr float imag(); (1) (since C++11) (until C++14) constexpr float imag() const; (1) (since C++14) void imag( float value ); (2) specialization complex<double> double imag() const; (1) (until C++11) constexpr double

std::real(std::complex)

Defined in header <complex> template< class T > T real( const complex<T>& z ); (1) (until C++14) template< class T > constexpr T real( const complex<T>& z ); (1) (since C++14) long double real( long double z ); (2) (since C++11) template< class DoubleOrInteger > double real( DoubleOrInteger z ); (3) (since C++11) float real( float z ); (4) (since C++11) Returns the real component of the complex number z, i.e. z

std::chrono::duration::operators (%=)

duration& operator+=(const duration& d); (1) duration& operator-=(const duration& d); (2) duration& operator*=(const rep& rhs); (3) duration& operator/=(const rep& rhs); (4) duration& operator%=(const rep& rhs); (5) duration& operator%=(const duration& rhs); (6) Performs compound assignments between two durations with the same period or between a duration and a tick count value. If rep_ is the member variable

std::map::emplace_hint

template <class... Args> iterator emplace_hint( const_iterator hint, Args&&... args ); (since C++11) Inserts a new element to the container as close as possible to the position just before hint. The element is constructed in-place, i.e. no copy or move operations are performed. The constructor of the element type (value_type, that is, std::pair<const Key, T>) is called with exactly the same arguments as supplied to the function, forwarded with std::forward<Args>

std::istrstream::rdbuf

strstreambuf* rdbuf() const; Returns a pointer to the associated std::strstreambuf, casting away its constness (despite the const qualifier on the member function). Parameters (none). Return value Pointer to the associated std::strsteambuf, with constness cast away. Example #include <strstream> int main() { const std::istrstream buf("example"); std::strstreambuf* ptr = buf.rdbuf(); }

operators (std::subtract_with_carry_engine)

template< class CharT, class Traits, class UIntType, size_t w, size_t s, size_t r > std::basic_ostream<CharT,Traits>& operator<<( std::basic_ostream<CharT,Traits>& ost, const std::subtract_with_carry_engine<UIntType,w,s,r>& e ); (1) (since C++11) template< class CharT, class Traits, class UIntType, size_t w, size_t s, size_t r > std::basic_istream<CharT,Traits>& operator>>( std:

std::unordered_multiset::bucket

size_type bucket( const Key& key ) const; (since C++11) Returns the index of the bucket for key key. Elements (if any) with keys equivalent to key are always found in this bucket. The returned value is valid only for instances of the container for which bucket_count() returns the same value. The behavior is undefined if bucket_count() is zero. Parameters key - the value of the key to examine Return value Bucket index for the key key. Complexity Constant. See also