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
8
9namespace etl {
10
18// clang-format off
19template <typename 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
The constructible_from concept specifies that a variable of type T can be initialized with the given ...
Definition constructible_from.hpp:15
The default_initializable concept checks whether variables of type T can be value-initialized (T() is...
Definition default_initializable.hpp:20
Definition adjacent_find.hpp:8