tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_trivially_move_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_MOVE_CONSTRUCTIBLE_HPP
5#define TETL_TYPE_TRAITS_IS_TRIVIALLY_MOVE_CONSTRUCTIBLE_HPP
6
7#include <etl/_type_traits/add_rvalue_reference.hpp>
8#include <etl/_type_traits/bool_constant.hpp>
9#include <etl/_type_traits/is_trivially_constructible.hpp>
10
11namespace etl {
12
13/// \brief If T is not a referenceable type (i.e., possibly cv-qualified void or
14/// a function type with a cv-qualifier-seq or a ref-qualifier), provides a
15/// member constant value equal to false. Otherwise, provides a member constant
16/// value equal to etl::is_trivially_constructible<T, T&&>::value.
17template <typename T>
19 : bool_constant<__is_trivially_constructible(T, add_rvalue_reference_t<add_const_t<T>>)> { };
20
21template <typename T>
23
24} // namespace etl
25
26#endif // TETL_TYPE_TRAITS_IS_TRIVIALLY_MOVE_CONSTRUCTIBLE_HPP
Definition adjacent_find.hpp:9
constexpr auto is_trivially_move_constructible_v
Definition is_trivially_move_constructible.hpp:22
If T is not a referenceable type (i.e., possibly cv-qualified void or a function type with a cv-quali...
Definition is_trivially_move_constructible.hpp:19