14 lines
299 B
C++
14 lines
299 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
|
|
namespace cpp11 {
|
|
|
|
enum class Color { Red, Green, Blue };
|
|
|
|
[[nodiscard]] auto to_index(Color color) -> int;
|
|
[[nodiscard]] constexpr auto square(const int value) -> int { return value * value; }
|
|
[[nodiscard]] auto find_null(int* ptr) -> int*;
|
|
|
|
} // namespace cpp11
|