VCCC  2024.05
VisualCamp Common C++ library
from_range.hpp
Go to the documentation of this file.
1 //
2 // Created by yonggyulee on 2024/01/06.
3 //
4 
5 #ifndef VCCC_RANGES_FROM_RANGE_HPP_
6 #define VCCC_RANGES_FROM_RANGE_HPP_
7 
8 #if __cplusplus >= 202302L
9 #include <ranges>
10 #endif
11 
13 
14 
15 namespace vccc {
16 
19 
20 #if __cplusplus >= 202302L && defined(__cpp_lib_containers_ranges)
21 using from_range_t = std::from_range_t;
22 #else
23 struct from_range_t {
24  explicit from_range_t() = default;
25 };
26 #endif
27 
29 
31 
32 } // namespace vccc
33 
34 #endif // VCCC_RANGES_FROM_RANGE_HPP_
constexpr VCCC_INLINE_OR_STATIC from_range_t from_range
Definition: from_range.hpp:28
#define VCCC_INLINE_OR_STATIC
Definition: inline_or_static.hpp:9
Definition: directory.h:12
Definition: from_range.hpp:23
from_range_t()=default