From 65d8928ff458aceb74ac44f214427f3ea8eaefc1 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Tue, 14 Apr 2020 12:40:39 +0200 Subject: [PATCH] Add is_lvalue_reference --- type.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/type.hpp b/type.hpp index eec8028..7a8d32d 100644 --- a/type.hpp +++ b/type.hpp @@ -63,6 +63,10 @@ template struct is_reference : true_type {}; template struct is_reference : true_type {}; template inline constexpr bool is_reference_v = is_reference::value; +template struct is_lvalue_reference : false_type {}; +template struct is_lvalue_reference : true_type {}; +template inline constexpr bool is_lvalue_reference_v = is_lvalue_reference::value; + template struct is_function : integral_constant && !is_reference_v> {}; template inline constexpr bool is_function_v = is_function::value;