tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
labs.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CSTDLIB_LABS_HPP
4
#define TETL_CSTDLIB_LABS_HPP
5
6
#include <
etl/_math/abs.hpp
>
7
8
namespace
etl
{
9
14
[[nodiscard]]
constexpr
auto
labs
(
long
n)
noexcept
->
long
{
return
detail::abs_impl<long>(n); }
15
16
}
// namespace etl
17
18
#endif
// TETL_CSTDLIB_LABS_HPP
abs.hpp
etl
Definition
adjacent_find.hpp:8
etl::labs
constexpr auto labs(long n) noexcept -> long
Computes the absolute value of an integer number. The behavior is undefined if the result cannot be r...
Definition
labs.hpp:14
include
etl
_cstdlib
labs.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0