Class implementation of hash map

is it important to make hashmap using classes or we can move to stl or implement in stl bcz it seems quite difficult to implement internally using classes

If you need some customized functions, or the question states a property that is not present in the standard hashmap (an example is constant time retrieval of the minimum element present in the hashmap, use a class
Else stl anyday as it has been researched developed and implemented by some of the best for time and space complexity