tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
default_initializable.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CONCEPTS_DEFAULT_INITIALIZABLE_HPP
4
#define TETL_CONCEPTS_DEFAULT_INITIALIZABLE_HPP
5
6
#include <
etl/_concepts/constructible_from.hpp
>
7
#include <
etl/_new/operator.hpp
>
8
9
namespace
etl
{
10
18
// clang-format off
19
template
<
typename
T>
20
concept
default_initializable
=
21
constructible_from<T>
&&
22
requires
{ T {}; } &&
23
requires
{ ::new (
static_cast<
void
*
>
(
nullptr
)) T; };
24
// clang-format on
25
26
}
// namespace etl
27
28
#endif
// TETL_CONCEPTS_DEFAULT_INITIALIZABLE_HPP
etl::constructible_from
The constructible_from concept specifies that a variable of type T can be initialized with the given ...
Definition
constructible_from.hpp:15
etl::default_initializable
The default_initializable concept checks whether variables of type T can be value-initialized (T() is...
Definition
default_initializable.hpp:20
constructible_from.hpp
etl
Definition
adjacent_find.hpp:8
operator.hpp
include
etl
_concepts
default_initializable.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0