VCCC  2024.05
VisualCamp Common C++ library
simple_view.hpp
Go to the documentation of this file.
1 //
2 // Created by yonggyulee on 2024/01/03.
3 //
4 
5 #ifndef VCCC_RANGES_SIMPLE_VIEW_HPP
6 #define VCCC_RANGES_SIMPLE_VIEW_HPP
7 
8 #include <type_traits>
9 
13 #include "vccc/__ranges/range.hpp"
14 #include "vccc/__ranges/view.hpp"
16 
17 namespace vccc {
18 namespace ranges {
19 
22 
23 template<typename R, bool = conjunction<view<R>, range<const R>>::value /* true */>
25  : conjunction<
26  same_as<iterator_t<R>, iterator_t<const R>>,
27  same_as<sentinel_t<R>, sentinel_t<const R>>
28  > {};
29 
30 template<typename R>
31 struct simple_view<R, false> : std::false_type {};
32 
34 
35 } // namespace vccc
36 } // namespace ranges
37 
38 #endif // VCCC_RANGES_SIMPLE_VIEW_HPP
Definition: directory.h:12
Definition: conjunction.hpp:22
Definition: simple_view.hpp:28