M
Mike Copeland
Is there syntax that allows me to assign multiple bitset values at
runtime? Specifically, I have declared the following:
bitset<128> valGenders;
and I wish to assign default values during execution. I know that I can
do this:
bitset<128> numDights (string("-.0123456789"));
but because valGenders is defined in a structure that's allocated during
runtime I cannot use this syntax. I wish to assign all the bits for the
characters "MmFf" as a default set when I allocate a structure member,
but I can't find anything that shows how.
Or must I run through 4 individual valGenders.set() calls? 8<{{
Please advise. TIA
runtime? Specifically, I have declared the following:
bitset<128> valGenders;
and I wish to assign default values during execution. I know that I can
do this:
bitset<128> numDights (string("-.0123456789"));
but because valGenders is defined in a structure that's allocated during
runtime I cannot use this syntax. I wish to assign all the bits for the
characters "MmFf" as a default set when I allocate a structure member,
but I can't find anything that shows how.
Or must I run through 4 individual valGenders.set() calls? 8<{{
Please advise. TIA