tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_lvalue_reference.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_LVALUE_REFERENCE_HPP
5#define TETL_TYPE_TRAITS_IS_LVALUE_REFERENCE_HPP
6
7#include <etl/_type_traits/bool_constant.hpp>
8
9namespace etl {
10
11/// \brief Checks whether T is a lvalue reference type. Provides the member
12/// constant value which is equal to true, if T is a lvalue reference type.
13/// Otherwise, value is equal to false.
14template <typename T>
15struct is_lvalue_reference : false_type { };
16
17template <typename T>
18struct is_lvalue_reference<T&> : true_type { };
19
20template <typename T>
22
23} // namespace etl
24
25#endif // TETL_TYPE_TRAITS_IS_LVALUE_REFERENCE_HPP
Definition adjacent_find.hpp:9
constexpr bool is_lvalue_reference_v
Definition is_lvalue_reference.hpp:21