All challenges
Multiple ChoiceBeginner 45s

Purpose of std::enable_if in overload resolution

What is the primary purpose of std::enable_if in template programming?
Options
  1. 1It throws a compile-time exception whenever the supplied condition evaluates to false
  2. 2It converts a template parameter into a concrete type at runtime, based on the condition
  3. 3It removes a function from the overload set when a condition is false, via a substitution failure
  4. 4It disables runtime assertions in release builds whenever the condition is satisfied

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