All fields

“Constexpr & Compile-Time” in Information Technology

13 questions across 1 technology.

Information Technology

13 questions in 1 technology

#QuestionTechnologyTopicLevel
1What is template metaprogramming versus constexpr for compile-time work? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeAdvanced
2What does constexpr mean? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeBeginner
3What is the difference between const and constexpr? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeBeginner
4What are the rules/limitations of constexpr functions? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeIntermediate
5How does constexpr improve performance? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeIntermediate
6What is compile-time computation good for, and what are its trade-offs? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeAdvanced
7Can constexpr be used with classes and containers? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeAdvanced
8What is 'if constexpr' and why is it useful? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeAdvanced
9What is static_assert? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeBeginner
10What is consteval (C++20)? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeIntermediate
11What is constinit (C++20)? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeIntermediate
12What is the difference between a macro constant and a constexpr/const constant? C++ › Preprocessor & MacrosC++Preprocessor & MacrosIntermediate
13Why are function-like macros discouraged in modern C++? C++ › Preprocessor & MacrosC++Preprocessor & MacrosIntermediate