tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
signed_integral.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4#ifndef TETL_CONCEPTS_SIGNED_INTEGRAL_HPP
5#define TETL_CONCEPTS_SIGNED_INTEGRAL_HPP
6
7#include <etl/_concepts/integral.hpp>
8#include <etl/_type_traits/is_signed.hpp>
9
10namespace etl {
11
12/// \brief The concept signed_integral<T> is satisfied if and only if T is an
13/// integral type and is_signed_v<T> is true.
14/// \ingroup concepts
15template <typename T>
16concept signed_integral = etl::integral<T> and etl::is_signed_v<T>;
17
18} // namespace etl
19
20#endif // TETL_CONCEPTS_SIGNED_INTEGRAL_HPP
Definition adjacent_find.hpp:9