tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_standard_layout.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_STANDARD_LAYOUT_HPP
5
#
define
TETL_TYPE_TRAITS_IS_STANDARD_LAYOUT_HPP
6
7
#
include
<
etl
/
_config
/
all
.
hpp
>
8
9
#
include
<
etl
/
_type_traits
/
bool_constant
.
hpp
>
10
11
namespace
etl
{
12
13
/// \brief If T is a standard layout type (that is, a scalar type, a
14
/// standard-layout class, or an array of such type/class, possibly
15
/// cv-qualified), provides the member constant value equal to true. For any
16
/// other type, value is false.
17
template
<
typename
T>
18
struct
is_standard_layout
: bool_constant<
__is_standard_layout
(T)> { };
19
20
template
<
typename
T
>
21
inline
constexpr
bool
is_standard_layout_v
=
is_standard_layout
<
T
>::
value
;
22
23
}
// namespace etl
24
25
#
endif
// TETL_TYPE_TRAITS_IS_STANDARD_LAYOUT_HPP
etl
Definition
adjacent_find.hpp:9
etl::is_standard_layout_v
constexpr bool is_standard_layout_v
Definition
is_standard_layout.hpp:21
etl::is_standard_layout
If T is a standard layout type (that is, a scalar type, a standard-layout class, or an array of such ...
Definition
is_standard_layout.hpp:18
include
etl
_type_traits
is_standard_layout.hpp
Generated on Sun Sep 7 2025 19:15:18 for tetl by
1.9.8