Namespaces
Variants
Views
Actions

std::locale::operator==, operator!=

From cppreference.com
< cpp‎ | locale‎ | locale
Revision as of 19:44, 2 November 2012 by P12bot (Talk | contribs)

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

<td>
Defined in header <locale>
</td>

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

<tr class="t-dcl ">

<td >
bool operator==( const locale& other ) const;
</td>

<td > (1) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
bool operator!=( const locale& other ) const;
</td>

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

Tests two locales for equality. Named locales are considered equal if their names are equal. Unnamed locales are considered equal if they are copies of each other.

Contents

Parameters

other - a std::locale object to compare

Return value

1) true if other is a copy of *this or has an identical name, false otherwise.

2) false if other is a copy of *this or has an identical name, true otherwise.

Example

See also

Template:cpp/locale/locale/dcl list localeTemplate:cpp/locale/locale/dcl list name