Is there any other way to determine the size of the container than:
BidIt begin;
BidIt end;
std::size_t size = 0;
while (begin != end)
{
++size;
++begin;
}
but I wonder if I can check the size of this container, for example, by subtracting the addresses of these iterators or something like that. Thanks for any help.
source
share