Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

size of unordered_set

// C++ program to illustrate the
// unordered_set::size() function
// when container is empty
#include <iostream>
#include <unordered_set>
  
using namespace std;
  
int main()
{
  
    unordered_set<int> arr2 = {};
  
    // prints the size
    cout << "Size of arr2 : " << arr2.size();
  
    return 0;
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #size
ADD COMMENT
Topic
Name
4+5 =