Files
cpp-course/modules/01_fundamentals/include/operators.hpp
T

14 lines
405 B
C++
Raw Normal View History

2026-08-11 17:40:36 +03:00
#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