fstream

This header is part of the Input/Output library. Classes basic_filebuf implements raw file device (class template) basic_ifstream implements high-level file stream input operations (class template) basic_ofstream implements high-level file stream output operations (class template) basic_fstream implements high-level file stream input/output (class template) Typedefs filebuf basic_filebuf<char> wfilebuf basic_filebuf<wchar_t> ifstream basic_ifs

friend declaration

The friend declaration appears in a class body and grants a function or another class access to private and protected members of the class where the friend declaration appears. Syntax friend function-declaration (1) friend function-definition (2) friend elaborated-class-name ; (3) friend simple-type-specifier ; friend typename-specifier ; (4) (since C++11) Description 1) Designates a function or several functions as friends of this class class Y { int data;

friend

Usage friend specifier

FP_NORMAL

Defined in header <cmath> #define FP_NORMAL /*implementation defined*/ (since C++11) #define FP_SUBNORMAL /*implementation defined*/ (since C++11) #define FP_ZERO /*implementation defined*/ (since C++11) #define FP_INFINITE /*implementation defined*/ (since C++11) #define FP_NAN /*implementation defined*/ (since C++11) The FP_NORMAL, FP_SUBNORMAL, FP_ZERO, FP_INFINITE, FP_NAN macros each represent a distinct category of floating-point

forward_list

This header is part of the containers library. Includes <initializer_list>(C++11) Classes forward_list (since C++11) singly-linked list (class template) Functions operator==operator!=operator<operator<=operator>operator>= lexicographically compares the values in the forward_list (function template) std::swap(std::forward_list) (C++11) specializes the std::swap algorithm (function template) Synopsis namespace std { #include <initializ

ForwardIterator

A ForwardIterator is an Iterator that can read data from the pointed-to element. Unlike InputIterator and OutputIterator, it can be used in multipass algorithms. Requirements The type It satisfies ForwardIterator if. The type It satisfies InputIterator The type It satisfies DefaultConstructible Objects of the type It provide multipass guarantee described below The type std::iterator_traits<It>::reference must be exactly T& if It satisfies OutputIterator (It is mutable)

FormattedOutputFunction

Requirements A FormattedOutputFunction is a stream output function that performs the following: Constructs an object of type basic_ostream::sentry with automatic storage duration, which performs the following if eofbit or badbit are set on the output stream, sets the failbit as well, and if exceptions on failbit are enabled in this output stream's exception mask, throws ios_base::failure. flushes the tie()'d output stream, if applicable. Checks the status of the sentry by calling sent

FormattedInputFunction

Requirements A FormattedInputFunction is a stream input function that performs the following: Constructs an object of type basic_istream::sentry with automatic storage duration and with the noskipws argument set to false, which performs the following if eofbit or badbit are set on the input stream, sets the failbit as well, and if exceptions on failbit are enabled in this input stream's exception mask, throws ios_base::failure. flushes the tie()'d output stream, if applicable if ios_b

for loop

Executes init-statement once, then executes statement and iteration_expression repeatedly, until the value of condition becomes false. The test takes place before each iteration. Syntax formal syntax: attr(optional) for ( init-statement condition(optional) ; iteration_expression(optional) ) statement informal syntax: attr(optional) for ( declaration-or-expression(optional) ; declaration-or-expression(optional) ; expression(optional) ) statement attr(C++11) - an

for

Usage for loop: as the declaration of the loop range-based for loop: as the declaration of the loop (since C++11)