VCCC
2024.05
VisualCamp Common C++ library
is_referenceable.hpp
Go to the documentation of this file.
1
//
2
// Created by yonggyulee on 2023/10/27.
3
//
4
5
#ifndef VCCC_TYPE_TRAITS_IS_REFERENCEABLE_HPP
6
#define VCCC_TYPE_TRAITS_IS_REFERENCEABLE_HPP
7
8
#include <type_traits>
9
10
#include "
vccc/__type_traits/void_t.hpp
"
11
12
namespace
vccc
{
13
16
17
template
<
typename
T,
typename
=
void
>
18
struct
is_referencable
: std::false_type {};
19
20
template
<
typename
T>
21
struct
is_referencable
<T,
void_t
<T&>> : std::true_type {};
22
24
25
}
// namespace vccc
26
27
#endif
// VCCC_TYPE_TRAITS_IS_REFERENCEABLE_HPP
vccc::void_t
void void_t
Definition:
void_t.hpp:19
vccc
Definition:
directory.h:12
vccc::is_referencable
Definition:
is_referenceable.hpp:18
void_t.hpp
include
vccc
__type_traits
is_referenceable.hpp
Generated by
1.9.1