operators (new[])

Defined in header <new> replaceable allocation functions void* operator new ( std::size_t count ); (1) void* operator new[]( std::size_t count ); (2) void* operator new ( std::size_t count, const std::nothrow_t& tag); (3) void* operator new[]( std::size_t count, const std::nothrow_t& tag); (4) placement allocation functions void* operator new ( std::size_t count, void* ptr ); (5) void* operator new[]( std::size_t count, void* ptr );

operators (delete[])

Defined in header <new> replaceable deallocation functions void operator delete ( void* ptr ); (1) void operator delete[]( void* ptr ); (2) void operator delete ( void* ptr, const std::nothrow_t& tag ); (3) void operator delete[]( void* ptr, const std::nothrow_t& tag ); (4) void operator delete ( void* ptr, std::size_t sz ); (5) (since C++14) void operator delete[]( void* ptr, std::size_t sz ); (6) (since C++14) placement dealloca

operators

template< class T > valarray<bool> operator==( const valarray<T>& lhs, const valarray<T>& rhs ); template< class T > valarray<bool> operator!=( const valarray<T>& lhs, const valarray<T>& rhs ); template< class T > valarray<bool> operator<( const valarray<T>& lhs, const valarray<T>& rhs ); template< class T > valarray<bool> operator<=( const valarray<T>& lhs, const val

operators

template< class T > complex<T> operator+( const complex<T>& lhs, const complex<T>& rhs); (1) template< class T > complex<T> operator+( const complex<T>& lhs, const T& rhs); (2) template< class T > complex<T> operator+( const T& lhs, const complex<T>& rhs); (3) template< class T > complex<T> operator-( const complex<T>& lhs, const complex<T>& rhs); (4) temp

operator&gt;&gt;(std::basic_istream)

template< class CharT, class Traits > basic_istream<CharT,Traits>& operator>>( basic_istream<CharT,Traits>& st, CharT& ch ); template< class Traits > basic_istream<char,Traits>& operator>>( basic_istream<char,Traits>& st, signed char& ch ); template< class Traits > basic_istream<char,Traits>& operator>>( basic_istream<char,Traits>& st, unsigned char& ch ); (1) template< class

operator&lt;&lt;(std::basic_ostream)

(1) template< class CharT, class Traits> basic_ostream<CharT,Traits>& operator<<( basic_ostream<CharT,Traits>& os, CharT ch ); template< class CharT, class Traits> basic_ostream<CharT,Traits>& operator<<( basic_ostream<CharT,Traits>& os, char ch ); template< class Traits > basic_ostream<char,Traits>& operator<<( basi

operator&lt;&lt;(std::thread::id)

template< class CharT, class Traits > std::basic_ostream<CharT,Traits>& operator<<( std::basic_ostream<CharT,Traits>& ost, thread::id id ); (since C++11) Writes a textual representation of a thread identifier id to the output stream ost. If two thread identifiers compare equal, they have identical textual representations; if they do not compare equal, their representations are distinct. Parameters ost - output stream to insert the data into

operator&lt;&lt;(std::sub_match)

template< class CharT, class Traits, class BidirIt > std::basic_ostream<CharT,Traits>& operator<<( std::basic_ostream<CharT,Traits>& os, const sub_match<BidirIt>& m ); (since C++11) Writes the representation of the matched subsequence m to the output stream os. Equivalent to os << m.str(). Parameters os - output stream to write the representation to m - a sub-match object to output Return value os.

Operator Precedence

The following table lists the precedence and associativity of C++ operators. Operators are listed top to bottom, in descending precedence. Precedence Operator Description Associativity 1 :: Scope resolution Left-to-right 2 ++ -- Suffix/postfix increment and decrement type() type{} Functional cast () Function call [] Subscript . -> Member access 3 ++ -- Prefix increment and decrement Right-to-left + - Unary plus and minus ! ~ Logical NOT an

operator-(reverse_iterator)

template< class Iterator > typename reverse_iterator<Iterator>::difference_type operator-( const reverse_iterator<Iterator>& lhs, const reverse_iterator<Iterator>& rhs ); (until C++11) template< class Iterator1, class Iterator2 > auto operator-( const reverse_iterator<Iterator1>& lhs, const reverse_iterator<Iterator2>& rhs ) -> decltype(rhs.base() - lhs.base()); (since C++11) Returns t