Initial Course
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace fundamentals {
|
||||
|
||||
[[nodiscard]] auto absolute_difference(int lhs, int rhs) -> int;
|
||||
[[nodiscard]] auto is_in_range(int value, int min, int max) -> bool;
|
||||
[[nodiscard]] auto count_set_bits(std::uint8_t value) -> int;
|
||||
[[nodiscard]] auto logical_and(bool lhs, bool rhs) -> bool;
|
||||
[[nodiscard]] auto logical_or(bool lhs, bool rhs) -> bool;
|
||||
|
||||
} // namespace fundamentals
|
||||
Reference in New Issue
Block a user