2026-08-11 17:40:36 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <cstddef>
|
|
|
|
|
|
|
|
|
|
namespace cpp11 {
|
|
|
|
|
|
|
|
|
|
enum class Color { Red, Green, Blue };
|
|
|
|
|
|
|
|
|
|
[[nodiscard]] auto to_index(Color color) -> int;
|
2026-08-17 21:35:13 +03:00
|
|
|
[[nodiscard]] constexpr auto square(const int value) -> int { return value * value; }
|
2026-08-11 17:40:36 +03:00
|
|
|
[[nodiscard]] auto find_null(int* ptr) -> int*;
|
|
|
|
|
|
|
|
|
|
} // namespace cpp11
|