All challenges
Multiple ChoiceIntermediate 45s

Strong vs basic vs nothrow guarantee

Which exception guarantee does std::vector::push_back provide when reallocation occurs and the element type is move-only and its move constructor is not noexcept?
Options
  1. 1Strong guarantee always
  2. 2Basic guarantee only
  3. 3Nothrow guarantee always
  4. 4No guarantee at all

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.

Play this in a 3-minute battle