VCCC
2024.05
VisualCamp Common C++ library
has_operator_arrow.hpp
Go to the documentation of this file.
1
//
2
// Created by yonggyulee on 1/24/24.
3
//
4
5
#ifndef VCCC_TYPE_TRAITS_HAS_OPERATOR_ARROW_HPP
6
#define VCCC_TYPE_TRAITS_HAS_OPERATOR_ARROW_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
has_operator_arrow
: std::false_type {};
19
20
template
<
typename
T>
21
struct
has_operator_arrow
<T,
void_t
<decltype(
std
::declval<T>().operator->())>> : std::true_type {};
22
24
25
}
// namespace vccc
26
27
#endif
// VCCC_TYPE_TRAITS_HAS_OPERATOR_ARROW_HPP
vccc::void_t
void void_t
Definition:
void_t.hpp:19
std
Definition:
matrix.hpp:495
vccc
Definition:
directory.h:12
vccc::has_operator_arrow
Definition:
has_operator_arrow.hpp:18
void_t.hpp
include
vccc
__type_traits
has_operator_arrow.hpp
Generated by
1.9.1