tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_reference.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_IS_REFERENCE_HPP
4#define TETL_TYPE_TRAITS_IS_REFERENCE_HPP
5
7
8namespace etl {
9
14template <typename T>
16
17template <typename T>
18struct is_reference<T&> : true_type { };
19
20template <typename T>
21struct is_reference<T&&> : true_type { };
22
23template <typename T>
24inline constexpr bool is_reference_v = is_reference<T>::value;
25
26} // namespace etl
27
28#endif // TETL_TYPE_TRAITS_IS_REFERENCE_HPP
Definition adjacent_find.hpp:8
constexpr bool is_reference_v
Definition is_reference.hpp:24
bool_constant< true > true_type
Definition bool_constant.hpp:13
bool_constant< false > false_type
Definition bool_constant.hpp:14
static constexpr bool value
Definition integral_constant.hpp:10
If T is a reference type (lvalue reference or rvalue reference), provides the member constant value e...
Definition is_reference.hpp:15