S
sumsin
are 'mutable' and 'volatile' a Storage Classes in C++?
are 'mutable' and 'volatile' a Storage Classes in C++?
Mutable is but volatile is not (volatile is a qualifier).
I might add that already in C, "storage class" was sort of a
catch-all, playing more of a syntactic role than anything else:
in C, typedef was a "storage class", for example. C++ moved
typedef out of the storage class category, but then added a
number of other things, and it's still more or less a catch-all;
the words "storage class" themselves only apply semantically to
most of the members, some of the time. (Declaring a variable at
namespace scope "static", for example, doesn't change anything
with regards to how it is stored.)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.