#include <set> void clear();
The function clear() deletes all of the elements in the set. clear() runs in linear time.