You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 67bc74c
Browse filesBrowse the repository at this point in the historyBrowse files
The operator function returns true only if the sequences controlled by `left` and `right` have the same length and, for each position `i`, `left[i] ==``right[i]`. You use it to test whether `left` is ordered the same as `right` when the two vectors are compared element by element.
2508
+
2509
+
### Example
2510
+
2511
+
```cpp
2512
+
// cliext_vector_operator_eq.cpp
2513
+
// compile with: /clr
2514
+
#include<cliext/vector>
2515
+
2516
+
intmain()
2517
+
{
2518
+
cliext::vector<wchar_t> c1;
2519
+
c1.push_back(L'a');
2520
+
c1.push_back(L'b');
2521
+
c1.push_back(L'c');
2522
+
2523
+
// display contents " a b c"
2524
+
for each (wchar_t elem in c1)
2525
+
System::Console::Write(" {0}", elem);
2526
+
System::Console::WriteLine();
2527
+
2528
+
// assign to a new container
2529
+
cliext::vector<wchar_t> c2;
2530
+
c2.push_back(L'a');
2531
+
c2.push_back(L'b');
2532
+
c2.push_back(L'd');
2533
+
2534
+
// display contents " a b d"
2535
+
for each (wchar_t elem in c2)
2536
+
System::Console::Write(" {0}", elem);
2537
+
System::Console::WriteLine();
2538
+
2539
+
System::Console::WriteLine("[a b c] == [a b c] is {0}",
2540
+
c1 == c1);
2541
+
System::Console::WriteLine("[a b c] == [a b d] is {0}",
0 commit comments