Aracılığıyla paylaş


operator!= (hash_multimap)

[!NOT]

Bu API artık kullanılmıyor.Alternatif unordered_multimap Class.

Testler işlecinin sol tarafındaki hash_multimap nesnesini hash_multimap nesnesini sağ tarafta eşit değildir.

bool operator!=(
   const hash_multimap <Key, Type, Traits, Allocator>& _Left,
   const hash_multimap <Key, Type, Traits, Allocator>& _Right
);

Parametreler

  • _Left
    Bir nesne türü hash_multimap.

  • _Right
    Bir nesne türü hash_multimap.

Dönüş Değeri

gerçek hash_multimaps; eşit değilse yanlış hash_multimaps eşit olması durumunda.

Notlar

Hash_multimap nesneleri arasında karşılaştırma öðelerinin ikili karşılaştırma üzerine dayanır.Bunlar aynı sayıda öğe varsa ve bunların ilgili öğeleri aynı değerlere sahip iki hash_multimaps eşit.Aksi halde, bunlar eşit olmayan.

Visual C++ .NET 2003, üyeleri de <hash_map> ve <hash_set> başlık dosyaları artık std ad alanında bulunan, ancak bunun yerine stdext ad alanına taşınmış.Bkz: ad stdext daha fazla bilgi için.

Örnek

// hash_multimap_op_ne.cpp
// compile with: /EHsc
#include <hash_map>
#include <iostream>

int main( )
{
   using namespace std;
   using namespace stdext;
   hash_multimap <int, int> hm1, hm2, hm3;
   int i;
   typedef pair <int, int> Int_Pair;

   for ( i = 0 ; i < 3 ; i++ )
   {
      hm1.insert ( Int_Pair ( i, i ) );
      hm2.insert ( Int_Pair ( i, i * i ) );
      hm3.insert ( Int_Pair ( i, i ) );
   }

   if ( hm1 != hm2 )
      cout << "The hash_multimaps hm1 and hm2 are not equal." << endl;
   else
      cout << "The hash_multimaps hm1 and hm2 are equal." << endl;

   if ( hm1 != hm3 )
      cout << "The hash_multimaps hm1 and hm3 are not equal." << endl;
   else
      cout << "The hash_multimaps hm1 and hm3 are equal." << endl;
}
  
  

Gereksinimler

Başlık: <hash_map>

Ad alanı: stdext

Ayrıca bkz.

Başvuru

Standart Şablon Kütüphanesi