Namespaces
Variants
Views
Actions

operator==,!=(std::allocator)

From cppreference.com
< cpp‎ | memory‎ | allocator
Revision as of 16:55, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dcl ">

<td class="t-dcl-nopad">
template< class T1, class T2 >
bool operator==( const allocator<T1>& lhs, const allocator<T2>& rhs );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td class="t-dcl-nopad">
template< class T1, class T2 >
bool operator!=( const allocator<T1>& lhs, const allocator<T2>& rhs );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

Compares two default allocators. Since default allocators are stateless, two default allocators are always equal.

1) Returns true
2) Returns false

Parameters

lhs, rhs - default allocators to compare

Return value

1) true
2) false

Exceptions

noexcept specification:  
noexcept