std::fputs

Defined in header <cstdio> int fputs( const char* str, std::FILE* stream ); Writes given null-terminated character string to the given output stream. Parameters str - null-terminated character string to be written stream - output stream Return value Non-negative integer on success, EOF on failure. See also printffprintfsprintfsnprintf (C++11) prints formatted output to stdout, a file stream or a buffer (function) puts writes a character str

std::fputc

Defined in header <cstdio> int fputc( int ch, std::FILE* stream ); int putc( int ch, std::FILE* stream ); Writes a character ch to the given output stream stream. Internally, the character is converted to unsigned char just before being written. In C, putc() may be implemented as a macro, which is disallowed in C++. Therefore calls to std::fputc() and std::putc() always have the same effect. Parameters ch - character to be written stream - output stream R

std::fpos::state

State state() const; (1) void state( State st ); (2) Manages the file position state. 1) Returns the value of the file position state 2) Replaces the file position state with the value of st. For the specializations of std::fpos that are used in the standard library, State is always std::mbstate_t. Parameters st - new value for the state Return value 1) the current value of the fpos state 2) (none) Example #include <iostream> #include <sstream> #

std::fpos

Defined in header <ios> template< class State > class fpos; Specializations of the class template std::fpos identify absolute positions in a stream or in a file. Each object of type fpos holds the byte position in the stream (typically as a private member of type std::streamoff) and the current shift state, a value of type State (typically std::mbstate_t). The following specializations of std::fpos are provided: Type Definition streampos std::fpos<std::char_

std::fpclassify

Defined in header <cmath> int fpclassify( float arg ); (1) (since C++11) int fpclassify( double arg ); (2) (since C++11) int fpclassify( long double arg ); (3) (since C++11) int fpclassify( Integral arg ); (4) (since C++11) 1-3) Categorizes floating point value arg into the following categories: zero, subnormal, normal, infinite, NAN, or implementation-defined category. 4) A set of overloads or a function template accepting the from argument of any inte

std::for_each

Defined in header <algorithm> template< class InputIt, class UnaryFunction > UnaryFunction for_each( InputIt first, InputIt last, UnaryFunction f ); Applies the given function object f to the result of dereferencing every iterator in the range [first, last), in order. If InputIt is a mutable iterator, f may modify the elements of the range through the dereferenced iterator. If f returns a result, the result is ignored. Parameters first, last - the range to app

std::forward_list::unique

void unique(); (1) (since C++11) template< class BinaryPredicate > void unique( BinaryPredicate p ); (2) (since C++11) Removes all consecutive duplicate elements from the container. Only the first element in each group of equal elements is left. The first version uses operator== to compare the elements, the second version uses the given binary predicate p. Parameters p - binary predicate which returns ​true if the elements should be treated as equal. The signature of

std::forward_list::swap

void swap( forward_list& other ); (since C++11) Exchanges the contents of the container with those of other. Does not invoke any move, copy, or swap operations on individual elements. All iterators and references remain valid. It is unspecified whether an iterator holding the past-the-end value in this container will refer to the this or the other container after the operation. If std::allocator_traits<allocator_type>::propagate_on_container_swap::value is true, then the allo

std::forward_list::splice_after

void splice_after( const_iterator pos, forward_list& other ); (1) (since C++11) void splice_after( const_iterator pos, forward_list&& other ); (1) (since C++11) void splice_after( const_iterator pos, forward_list& other, const_iterator it ); (2) (since C++11) void splice_after( const_iterator pos, forward_list&& other, const_iterator it ); (2) (since C++11) void splice_after( const_iterator pos, forward_list

std::forward_list::sort

void sort(); (1) (since C++11) template< class Compare > void sort( Compare comp ); (2) (since C++11) Sorts the elements in ascending order. The order of equal elements is preserved. The first version uses operator< to compare the elements, the second version uses the given comparison function comp. Parameters comp - comparison function object (i.e. an object that satisfies the requirements of Compare) which returns ​true if the first argument is less than (i.e.