OutputIterator

An OutputIterator is an Iterator that can write to the pointed-to element. An example of a type that implements OutputIterator is std::ostream_iterator. When ForwardIterator, BidirectionalIterator, or RandomAccessIterator satisfies the OutputIterator requirements in addition to its own requirements, it is described as mutable. Requirements The type X satisfies OutputIterator if. The type X satisfies Iterator X is a class type or a pointer type And, given. o, a value of some type that

Other operators

Operator name Syntax Over​load​able Prototype examples (for class T) Inside class definition Outside class definition function call a(a1, a2) Yes R T::operator()(Arg1 &a1, Arg2 &a2, ... ...); N/A comma a, b Yes T2& T::operator,(T2 &b); T2& operator,(const T &a, T2 &b); ternary conditional a ? b : c No N/A N/A Explanation The function call operator provides function semantics for any object. The ternary conditional operator

ostream

This header is part of the Input/output library. Classes basic_ostream wraps a given abstract device (std::basic_streambuf) and provides high-level output interface (class template) std::ostream basic_ostream<char>(typedef) std::wostream basic_ostream<wchar_t>(typedef) Functions operator<<(std::basic_ostream) inserts character data (function template) Manipulators ends outputs '\0' (function template) flush flushes the output stream

or_eq

Usage alternative operators: as an alternative for |=

Order of evaluation

Order of evaluation of the operands of almost all C++ operators (including the order of evaluation of function arguments in a function-call expression and the order of evaluation of the subexpressions within any expression) is unspecified. The compiler can evaluate operands in any order, and may choose another order when the same expression is evaluated again. There are several exceptions to this rule (e.g. for the &&, ||, and , operators) which are noted below. Otherwise, there is no c

or

Usage alternative operators: as an alternative for ||

operators (std::weibull_distribution)

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

operators (std::weibull_distribution)

template< class ResultType > bool operator==( const weibull_distribution<ResultType>& lhs, const weibull_distribution<ResultType>& rhs ); (1) template< class ResultType > bool operator!=( const weibull_distribution<ResultType>& lhs, const weibull_distribution<ResultType>& rhs ); (2) Compares two distribution objects. Two distribution objects are equal when parameter values and internal state is t

operators (std::vector)

template< class T, class Alloc > bool operator==( const vector<T,Alloc>& lhs, const vector<T,Alloc>& rhs ); (1) template< class T, class Alloc > bool operator!=( const vector<T,Alloc>& lhs, const vector<T,Alloc>& rhs ); (2) template< class T, class Alloc > bool operator<( const vector<T,Alloc>& lhs, const vector<T,Alloc>& rhs ); (3) template< c

operators (std::valarray)

Defined in header <valarray> template <class T> std::valarray<T> operator+ (const std::valarray<T>& lhs, const std::valarray<T>& rhs); template <class T> std::valarray<T> operator- (const std::valarray<T>& lhs, const std::valarray<T>& rhs); template <class T> std::valarray<T> operator* (const std::valarray<T>& lhs, const std::valarray<T>& rhs); template <class T> std::valarray<