tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_trivially_constructible.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_TRIVIALLY_CONSTRUCTIBLE_HPP
5#define TETL_TYPE_TRAITS_IS_TRIVIALLY_CONSTRUCTIBLE_HPP
6
7#include <etl/_config/all.hpp>
8
9#include <etl/_type_traits/bool_constant.hpp>
10
11namespace etl {
12
13/// \brief The variable definition does not call any operation that is not
14/// trivial. For the purposes of this check, the call to etl::declval is
15/// considered trivial.
16template <typename T, typename... Args>
17struct is_trivially_constructible : bool_constant<__is_trivially_constructible(T)> { };
18
19template <typename T, typename... Args>
21
22} // namespace etl
23
24#endif // TETL_TYPE_TRAITS_IS_TRIVIALLY_CONSTRUCTIBLE_HPP
Definition adjacent_find.hpp:9
constexpr bool is_trivially_constructible_v
Definition is_trivially_constructible.hpp:20
The variable definition does not call any operation that is not trivial. For the purposes of this che...
Definition is_trivially_constructible.hpp:17