[Cs3] Lab today

Mikhail Nesterenko mikhail at cs.kent.edu
Wed Oct 18 14:54:40 EDT 2017


> Question about lab 7 - hash map:
> 
> For erase, if the key specified does not exist, the value of the return
> pointer is unspecified.
> 
> What exactly does this mean?
> 
> Would it be acceptable to return a nullptr, since it is unspecified, or
> does this need to be something else?
> 

Unspecified means any value is acceptable. nullptr is acceptable.

Thanks,
--
Mikhail


More information about the cs3 mailing list