Multiple ChoiceIntermediate 45s
std::bit_cast Requirements
For std::bit_cast<To>(from) to be well-defined, both types must be:
Options
- 1Same size and trivially copyable, with no padding effect on value bits being required
- 2POD with the same size, and To must be trivially copyable; no pointers-to-virtual issues
- 3Reference types of equal size
- 4Volatile-qualified arrays
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.