std::basic_streambuf::sgetc

int_type sgetc(); Reads one character from the input sequence. If the input sequence read position is not available, returns underflow(). Otherwise returns Traits::to_int_type(*gptr()). Parameters (none). Return value The value of the character pointed to by the get pointer. Example #include <iostream> #include <sstream> int main() { std::stringstream stream("Hello, world"); std::cout << "sgetc() returned '" << (char)stream.rdbuf()->sgetc(

std::basic_ios::exceptions

std::ios_base::iostate exceptions() const; (1) void exceptions( std::ios_base::iostate except ); (2) Gets and sets the exception mask of the stream. The exception mask determines the error states, on occurrence of which the stream throws exception of type failure. 1) Returns the exception mask. 2) Sets the exception mask to except. Parameters except - exception mask Return value 1) The current exception mask. 2) (none) Example #include <iostream> #incl

operators (std::basic_string)

Defined in header <string> template <class CharT, class Traits, class Allocator> std::basic_ostream<CharT, Traits>& operator<<(std::basic_ostream<CharT, Traits>& os, const std::basic_string<CharT, Traits, Allocator>& str); (1) template <class CharT, class Traits, class Allocator> std::basic_istream<CharT, Traits>& operator>>(std::basic_istream<CharT, Traits>& is,

std::error_code::assign

void assign( int ec, const error_category& ecat ); (since C++11) Replaces the contents with error code ec and corresponding category ecat. Parameters ec - platform-dependent error code enum to assign ecat - error category corresponding to ec Return value (none). Exceptions noexcept specification: noexcept See also operator= assigns another error code (public member function)

std::atomic_signal_fence

Defined in header <atomic> extern "C" void atomic_signal_fence( std::memory_order order ); (since C++11) Establishes memory synchronization ordering of non-atomic and relaxed atomic accesses, as instructed by order, between a thread and a signal handler executed on the same thread. This is equivalent to std::atomic_thread_fence, except no CPU instructions for memory ordering are issued. Only reordering of the instructions by the compiler is suppressed as order instructs. Fo

std::array::operator[]

reference operator[]( size_type pos ); (since C++11) const_reference operator[]( size_type pos ) const; (since C++11) (until C++14) constexpr const_reference operator[]( size_type pos ) const; (since C++14) Returns a reference to the element at specified location pos. No bounds checking is performed. Parameters pos - position of the element to return Return value Reference to the requested element. Complexity Constant. Notes Unlike std::map::operato

std::multiset::clear

void clear(); Removes all elements from the container. Invalidates any references, pointers, or iterators referring to contained elements. May invalidate any past-the-end iterators. Parameters (none). Return value (none). Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Linear in the size of the container. See also erase erases elements (public member function)

std::max_align_t

Defined in header <cstddef> typedef /*implementation-defined*/ max_align_t; (since C++11) std::max_align_t is a POD type whose alignment requirement is at least as strict (as large) as that of every scalar type. Notes Pointers returned by allocation functions such as std::malloc are suitably aligned for any object, which means they are aligned at least as strict as std::max_align_t. std::max_align_t is usually synonymous with the largest scalar type, which is long double

deque

This header is part of the containers library. Classes deque double-ended queue (class template) Functions operator==operator!=operator<operator<=operator>operator>= lexicographically compares the values in the deque (function template) std::swap(std::deque) specializes the std::swap algorithm (function template) Synopsis namespace std { #include <initializer_list> template <class T, class Allocator = allocator<T> > class de

assert

Defined in header <cassert> #ifdef NDEBUG #define assert(condition) ((void)0) #else #define assert(condition) /*implementation defined*/ #endif The definition of the macro assert depends on another macro, NDEBUG, which is not defined by the standard library. If NDEBUG is defined as a macro name at the point in the source code where <cassert> is included, then assert does nothing. If NDEBUG is not defined, then assert checks if its argument (which must have scalar type