VCCC
2024.05
VisualCamp Common C++ library
enable_view.hpp
Go to the documentation of this file.
1
//
2
// Created by yonggyulee on 2023/12/30.
3
//
4
5
#ifndef VCCC_RANGES_ENABLE_VIEW_HPP
6
#define VCCC_RANGES_ENABLE_VIEW_HPP
7
8
#include "
vccc/__concepts/derived_from.hpp
"
9
#include "
vccc/__concepts/derived_from_single_crtp.hpp
"
10
#include "
vccc/__ranges/__forward_declare.hpp
"
11
#include "
vccc/__ranges/view_base.hpp
"
12
#include "
vccc/__type_traits/disjunction.hpp
"
13
14
namespace
vccc
{
15
namespace
ranges {
16
19
20
32
template
<
typename
T>
33
struct
enable_view
:
disjunction
<
34
derived_from<T, view_base>,
35
derived_from_single_crtp<T, view_interface>
36
> {};
37
39
40
}
// namespace ranges
41
}
// namespace vccc
42
43
#endif
// VCCC_RANGES_ENABLE_VIEW_HPP
__forward_declare.hpp
derived_from.hpp
derived_from_single_crtp.hpp
disjunction.hpp
vccc
Definition:
directory.h:12
vccc::disjunction
Definition:
disjunction.hpp:22
vccc::ranges::enable_view
The enable_view variable template is used to indicate whether a range is a view.
Definition:
enable_view.hpp:36
view_base.hpp
include
vccc
__ranges
enable_view.hpp
Generated by
1.9.1