C
ctick
Q1.
boost::dynamic_bitset<>& get_bset()
{
boost::dynamic_bitset<> x(8);
return x;
}
void main()
{
boost::dynamic_bitset<> y(8);
y = get_bset();
}
Does y have to be specified with size, like 8 in main()?
Q2.
If there are two dynamic_bitset,
boost::dynamic_bitset<> x(8);
boost::dynamic_bitset<> y(8);
How to copy all bits from x to y?
Q3.
What will happen if copying from x from y but they have different size of
bits?
boost::dynamic_bitset<> x(10);
boost::dynamic_bitset<> y(8);
Thanks in advance!
boost::dynamic_bitset<>& get_bset()
{
boost::dynamic_bitset<> x(8);
return x;
}
void main()
{
boost::dynamic_bitset<> y(8);
y = get_bset();
}
Does y have to be specified with size, like 8 in main()?
Q2.
If there are two dynamic_bitset,
boost::dynamic_bitset<> x(8);
boost::dynamic_bitset<> y(8);
How to copy all bits from x to y?
Q3.
What will happen if copying from x from y but they have different size of
bits?
boost::dynamic_bitset<> x(10);
boost::dynamic_bitset<> y(8);
Thanks in advance!