Which C++ standard introduced concepts and the ranges library as major modern C++ features?

Options

  • A. C++14
  • B. C++17
  • C. C++20
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. C++20

Detailed Explanation

Answer: (C) C++20

C++20 introduced several significant modern C++ features.

Among them are concepts, ranges, coroutines and modules as major additions to the language and library ecosystem.

Concepts are particularly useful with templates because they allow programmers to specify requirements that template arguments should satisfy.