Solved: 50 - Constexpr Frontier
This commit is contained in:
@@ -1,20 +1,6 @@
|
||||
#include "constexpr_frontier.hpp"
|
||||
|
||||
namespace cpp26 {
|
||||
|
||||
auto compile_time_factorial(int n) -> long long {
|
||||
(void)n;
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto compile_time_sum(std::array<int, 5> values) -> int {
|
||||
(void)values;
|
||||
return 0;
|
||||
}
|
||||
|
||||
auto is_sorted(std::array<int, 5> values) -> bool {
|
||||
(void)values;
|
||||
return false;
|
||||
}
|
||||
// constexpr functions should be defined in the header file
|
||||
|
||||
} // namespace cpp26
|
||||
|
||||
Reference in New Issue
Block a user