I l@ve RuBoard Previous Section Next Section

count()

Returns a count of the number of elements within the container equal to value.



#include <algorithm> 


cout << value << " occurs " 


     << count( svec.begin(), svec.end(), value ) 


     << " times in string vector.\n"; 
    I l@ve RuBoard Previous Section Next Section