tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_void.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_TYPE_TRAITS_IS_VOID_HPP
5
#
define
TETL_TYPE_TRAITS_IS_VOID_HPP
6
7
#
include
<
etl
/
_type_traits
/
is_same
.
hpp
>
8
#
include
<
etl
/
_type_traits
/
remove_cv
.
hpp
>
9
10
namespace
etl
{
11
12
/// \brief Define a member typedef only if a boolean constant is true.
13
template
<
typename
T>
14
struct
is_void :
is_same
<
void
, remove_cv_t<T>> { };
15
16
template
<
typename
T
>
17
inline
constexpr
bool
is_void_v
=
is_same_v
<
void
,
remove_cv_t
<
T
>>;
18
19
}
// namespace etl
20
21
#
endif
// TETL_TYPE_TRAITS_IS_VOID_HPP
etl
Definition
adjacent_find.hpp:9
etl::is_void_v
constexpr bool is_void_v
Definition
is_void.hpp:17
etl::is_same
If T and U name the same type (taking into account const/volatile qualifications),...
Definition
is_same.hpp:16
include
etl
_type_traits
is_void.hpp
Generated on Sun Sep 7 2025 19:15:18 for tetl by
1.9.8