max_size() for a container returns the theoretical maximum number of elements that the container can hold.
> can i write something like this: double max_size() const noexcept
No, if the container conforms to the requirements of a standard library compatible container.
It must return the size_type of the container; the size_type must be an unsigned integer type capable of holding the maximum theoretical value for the size() of the container.