Commonly used methods in set
c++ stl container set member function: begin()--returns an iterator pointing to the first element
c++ stl container set member function: clear()--clear all elements
c++ stl container set member function: count()-- used to find the number of occurrences of a certain key value in the set. This function is not very useful in sets, because a key value can only appear in the set
0 or 1 time, so it becomes a judgment of whether a key value has appeared in the set.
c++ stl container set member function: empty()--If the set is empty, return true
c++ stl container set member function: end()--returns an iterator pointing to the last element
c++ stl container set member function: equal_range()--returns two iterators of the upper and lower bounds equal to the given value in the set
c++ stl container set member function: erase()--delete elements in the set
c++ stl container set member function: find()--returns an iterator pointing to the element found
c++ stl container set member function: get_allocator()--returns the allocator of the set
c++ stl container set member function: insert()--insert elements in the collection
c++ stl container set member function: lower_bound()--returns an iterator pointing to the first element greater than (or equal to) a value
c++ stl container set member function: key_comp()--returns a function for value comparison between elements
c++ stl container set member function: max_size()--returns the maximum limit of the elements that the set can hold
c++ stl container set member function: rbegin()--returns a reverse iterator pointing to the last element in the set
c++ stl container set member function: rend()--returns a reverse iterator pointing to the first element in the set
c++ stl container set member function: size()--the number of elements in the set
c++ stl container set member function: swap()--exchange two set variables
c++ stl container set member function: upper_bound()--returns an iterator of elements greater than a certain value
c++ stl container set member function: value_comp()--returns a function for comparing the values between elements