-
Notifications
You must be signed in to change notification settings - Fork 439
/
range_fwd.hpp
932 lines (733 loc) · 22.5 KB
/
range_fwd.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
/// \file
// Range v3 library
//
// Copyright Eric Niebler 2013-present
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Project home: https://github.com/ericniebler/range-v3
//
#ifndef RANGES_V3_RANGE_FWD_HPP
#define RANGES_V3_RANGE_FWD_HPP
#include <type_traits>
#include <utility>
#include <meta/meta.hpp>
#include <concepts/concepts.hpp>
#include <concepts/compare.hpp>
#include <range/v3/detail/config.hpp>
#include <range/v3/utility/static_const.hpp>
#include <range/v3/version.hpp>
/// \defgroup group-iterator Iterator
/// Iterator functionality
/// \defgroup group-iterator-concepts Iterator Concepts
/// \ingroup group-iterator
/// Iterator concepts
/// \defgroup group-range Range
/// Core range functionality
/// \defgroup group-range-concepts Range Concepts
/// \ingroup group-range
/// Range concepts
/// \defgroup group-algorithms Algorithms
/// Iterator- and range-based algorithms, like the standard algorithms
/// \defgroup group-views Views
/// Lazy, non-owning, non-mutating, composable range views
/// \defgroup group-actions Actions
/// Eager, mutating, composable algorithms
/// \defgroup group-utility Utility
/// Utility classes
/// \defgroup group-functional Functional
/// Function and function object utilities
/// \defgroup group-numerics Numerics
/// Numeric utilities
#include <range/v3/detail/prologue.hpp>
RANGES_DIAGNOSTIC_PUSH
RANGES_DIAGNOSTIC_IGNORE_CXX17_COMPAT
namespace ranges
{
/// \cond
namespace views
{
}
namespace actions
{
}
// GCC either fails to accept an attribute on a namespace, or else
// it ignores the deprecation attribute. Frustrating.
#if(RANGES_CXX_VER < RANGES_CXX_STD_17 || defined(__GNUC__) && !defined(__clang__))
inline namespace v3
{
using namespace ranges;
}
namespace view = views;
namespace action = actions;
#else
inline namespace RANGES_DEPRECATED(
"The name ranges::v3 namespace is deprecated. "
"Please discontinue using it.") v3
{
using namespace ranges;
}
namespace RANGES_DEPRECATED(
"The ranges::view namespace has been renamed to ranges::views. "
"(Sorry!)") view
{
using namespace views;
}
namespace RANGES_DEPRECATED(
"The ranges::action namespace has been renamed to ranges::actions. "
"(Sorry!)") action
{
using namespace actions;
}
#endif
namespace _end_
{
struct fn;
}
using end_fn = _end_::fn;
namespace _size_
{
struct fn;
}
template<typename>
struct result_of;
template<typename Sig>
using result_of_t RANGES_DEPRECATED(
"ranges::result_of_t is deprecated. "
"Please use ranges::invoke_result_t") = meta::_t<result_of<Sig>>;
/// \endcond
template<typename...>
struct variant;
struct dangling;
struct make_pipeable_fn;
struct pipeable_base;
template<typename First, typename Second>
struct composed;
template<typename... Fns>
struct overloaded;
namespace actions
{
template<typename ActionFn>
struct action_closure;
}
namespace views
{
template<typename ViewFn>
struct view_closure;
}
struct advance_fn;
struct advance_to_fn;
struct advance_bounded_fn;
struct next_fn;
struct prev_fn;
struct distance_fn;
struct iter_size_fn;
template<typename T>
struct indirectly_readable_traits;
template<typename T>
using readable_traits RANGES_DEPRECATED("Please use ranges::indirectly_readable_traits")
= indirectly_readable_traits<T>;
template<typename T>
struct incrementable_traits;
struct view_base
{};
/// \cond
namespace detail
{
template<typename T>
struct difference_type_;
template<typename T>
struct value_type_;
} // namespace detail
template<typename T>
using difference_type RANGES_DEPRECATED(
"ranges::difference_type<T>::type is deprecated. Use "
"ranges::incrementable_traits<T>::difference_type instead.") =
detail::difference_type_<T>;
template<typename T>
using value_type RANGES_DEPRECATED(
"ranges::value_type<T>::type is deprecated. Use "
"ranges::indirectly_readable_traits<T>::value_type instead.") = detail::value_type_<T>;
template<typename T>
struct size_type;
/// \endcond
/// \cond
namespace detail
{
struct ignore_t
{
ignore_t() = default;
template<typename T>
constexpr ignore_t(T &&) noexcept
{}
template<typename T>
constexpr ignore_t const & operator=(T &&) const noexcept
{
return *this;
}
};
struct value_init
{
template<typename T>
operator T() const
{
return T{};
}
};
struct make_compressed_pair_fn;
template<typename T>
constexpr meta::_t<std::remove_reference<T>> && move(T && t) noexcept
{
return static_cast<meta::_t<std::remove_reference<T>> &&>(t);
}
struct as_const_fn
{
template<typename T>
constexpr T const & operator()(T & t) const noexcept
{
return t;
}
template<typename T>
constexpr T const && operator()(T && t) const noexcept
{
return (T &&) t;
}
};
RANGES_INLINE_VARIABLE(as_const_fn, as_const)
template<typename T>
using as_const_t = decltype(as_const(std::declval<T>()));
template<typename T>
using decay_t = meta::_t<std::decay<T>>;
template<typename T, typename R = meta::_t<std::remove_reference<T>>>
using as_ref_t =
meta::_t<std::add_lvalue_reference<meta::_t<std::remove_const<R>>>>;
template<typename T, typename R = meta::_t<std::remove_reference<T>>>
using as_cref_t = meta::_t<std::add_lvalue_reference<R const>>;
struct get_first;
struct get_second;
template<typename Val1, typename Val2>
struct replacer_fn;
template<typename Pred, typename Val>
struct replacer_if_fn;
template<typename I>
struct move_into_cursor;
template<typename Int>
struct from_end_;
template<typename... Ts>
constexpr int ignore_unused(Ts &&...)
{
return 42;
}
template<int I>
struct priority_tag : priority_tag<I - 1>
{};
template<>
struct priority_tag<0>
{};
#if defined(__clang__) && !defined(_LIBCPP_VERSION)
template<typename T, typename... Args>
RANGES_INLINE_VAR constexpr bool is_trivially_constructible_v =
__is_trivially_constructible(T, Args...);
template<typename T>
RANGES_INLINE_VAR constexpr bool is_trivially_default_constructible_v =
is_trivially_constructible_v<T>;
template<typename T>
RANGES_INLINE_VAR constexpr bool is_trivially_copy_constructible_v =
is_trivially_constructible_v<T, T const &>;
template<typename T>
RANGES_INLINE_VAR constexpr bool is_trivially_move_constructible_v =
is_trivially_constructible_v<T, T>;
template<typename T>
RANGES_INLINE_VAR constexpr bool is_trivially_copyable_v =
__is_trivially_copyable(T);
template<typename T, typename U>
RANGES_INLINE_VAR constexpr bool is_trivially_assignable_v =
__is_trivially_assignable(T, U);
template<typename T>
RANGES_INLINE_VAR constexpr bool is_trivially_copy_assignable_v =
is_trivially_assignable_v<T &, T const &>;
template<typename T>
RANGES_INLINE_VAR constexpr bool is_trivially_move_assignable_v =
is_trivially_assignable_v<T &, T>;
template<typename T, typename... Args>
struct is_trivially_constructible
: meta::bool_<is_trivially_constructible_v<T, Args...>>
{};
template<typename T>
struct is_trivially_default_constructible
: meta::bool_<is_trivially_default_constructible_v<T>>
{};
template<typename T>
struct is_trivially_copy_constructible
: meta::bool_<is_trivially_copy_constructible_v<T>>
{};
template<typename T>
struct is_trivially_move_constructible
: meta::bool_<is_trivially_move_constructible_v<T>>
{};
template<typename T>
struct is_trivially_copyable
: meta::bool_<is_trivially_copyable_v<T>>
{};
template<typename T, typename U>
struct is_trivially_assignable
: meta::bool_<is_trivially_assignable_v<T, U>>
{};
template<typename T>
struct is_trivially_copy_assignable
: meta::bool_<is_trivially_copy_assignable_v<T>>
{};
template<typename T>
struct is_trivially_move_assignable
: meta::bool_<is_trivially_move_assignable_v<T>>
{};
#else
using std::is_trivially_constructible;
using std::is_trivially_default_constructible;
using std::is_trivially_copy_assignable;
using std::is_trivially_copy_constructible;
using std::is_trivially_copyable;
using std::is_trivially_assignable;
using std::is_trivially_move_assignable;
using std::is_trivially_move_constructible;
#if META_CXX_TRAIT_VARIABLE_TEMPLATES
using std::is_trivially_constructible_v;
using std::is_trivially_default_constructible_v;
using std::is_trivially_copy_assignable_v;
using std::is_trivially_copy_constructible_v;
using std::is_trivially_copyable_v;
using std::is_trivially_assignable_v;
using std::is_trivially_move_assignable_v;
using std::is_trivially_move_constructible_v;
#else
template<typename T, typename... Args>
RANGES_INLINE_VAR constexpr bool is_trivially_constructible_v =
is_trivially_constructible<T, Args...>::value;
template<typename T>
RANGES_INLINE_VAR constexpr bool is_trivially_default_constructible_v =
is_trivially_default_constructible<T>::value;
template<typename T>
RANGES_INLINE_VAR constexpr bool is_trivially_copy_constructible_v =
is_trivially_copy_constructible<T>::value;
template<typename T>
RANGES_INLINE_VAR constexpr bool is_trivially_move_constructible_v =
is_trivially_move_constructible<T>::value;
template<typename T>
RANGES_INLINE_VAR constexpr bool is_trivially_copyable_v =
is_trivially_copyable<T>::value;
template<typename T, typename U>
RANGES_INLINE_VAR constexpr bool is_trivially_assignable_v =
is_trivially_assignable<T, U>::value;
template<typename T>
RANGES_INLINE_VAR constexpr bool is_trivially_copy_assignable_v =
is_trivially_copy_assignable<T>::value;
template<typename T>
RANGES_INLINE_VAR constexpr bool is_trivially_move_assignable_v =
is_trivially_move_assignable<T>::value;
#endif
#endif
template<typename T>
RANGES_INLINE_VAR constexpr bool is_trivial_v =
is_trivially_copyable_v<T> &&
is_trivially_default_constructible_v<T>;
template<typename T>
struct is_trivial
: meta::bool_<is_trivial_v<T>>
{};
#if RANGES_CXX_LIB_IS_FINAL > 0
#if defined(__clang__) && !defined(_LIBCPP_VERSION)
template<typename T>
RANGES_INLINE_VAR constexpr bool is_final_v = __is_final(T);
template<typename T>
struct is_final
: meta::bool_<is_final_v<T>>
{};
#else
using std::is_final;
#if META_CXX_TRAIT_VARIABLE_TEMPLATES
using std::is_final_v;
#else
template<typename T>
RANGES_INLINE_VAR constexpr bool is_final_v = is_final<T>::value;
#endif
#endif
#else
template<typename T>
RANGES_INLINE_VAR constexpr bool is_final_v = false;
template<typename T>
using is_final = std::false_type;
#endif
// Work around libc++'s buggy std::is_function
// Function types here:
template<typename T>
char (&is_function_impl_(priority_tag<0>))[1];
// Array types here:
template<typename T, typename = decltype((*(T *)0)[0])>
char (&is_function_impl_(priority_tag<1>))[2];
// Anything that can be returned from a function here (including
// void and reference types):
template<typename T, typename = T (*)()>
char (&is_function_impl_(priority_tag<2>))[3];
// Classes and unions (including abstract types) here:
template<typename T, typename = int T::*>
char (&is_function_impl_(priority_tag<3>))[4];
template<typename T>
RANGES_INLINE_VAR constexpr bool is_function_v =
sizeof(detail::is_function_impl_<T>(priority_tag<3>{})) == 1;
template<typename T>
struct remove_rvalue_reference
{
using type = T;
};
template<typename T>
struct remove_rvalue_reference<T &&>
{
using type = T;
};
template<typename T>
using remove_rvalue_reference_t = meta::_t<remove_rvalue_reference<T>>;
// Workaround bug in the Standard Library:
// From cannot be an incomplete class type despite that
// is_convertible<X, Y> should be equivalent to is_convertible<X&&, Y>
// in such a case.
template<typename From, typename To>
using is_convertible =
std::is_convertible<meta::_t<std::add_rvalue_reference<From>>, To>;
} // namespace detail
/// \endcond
struct begin_tag
{};
struct end_tag
{};
struct copy_tag
{};
struct move_tag
{};
template<typename T>
using uncvref_t = meta::_t<std::remove_cv<meta::_t<std::remove_reference<T>>>>;
struct not_equal_to;
struct equal_to;
struct less;
#if __cplusplus > 201703L && __has_include(<compare>) && \
defined(__cpp_concepts) && defined(__cpp_impl_three_way_comparison)
struct compare_three_way;
#endif // __cplusplus
struct identity;
template<typename Pred>
struct logical_negate;
enum cardinality : std::ptrdiff_t
{
infinite = -3,
unknown = -2,
finite = -1
};
template<typename Rng, typename Void = void>
struct range_cardinality;
template<typename Rng>
using is_finite = meta::bool_<range_cardinality<Rng>::value >= finite>;
template<typename Rng>
using is_infinite = meta::bool_<range_cardinality<Rng>::value == infinite>;
template<typename S, typename I>
RANGES_INLINE_VAR constexpr bool disable_sized_sentinel = false;
template<typename R>
RANGES_INLINE_VAR constexpr bool enable_borrowed_range = false;
namespace detail
{
template<typename R>
RANGES_DEPRECATED("Please use ranges::enable_borrowed_range instead.")
RANGES_INLINE_VAR constexpr bool enable_safe_range = enable_borrowed_range<R>;
} // namespace detail
using detail::enable_safe_range;
template<typename Cur>
struct basic_mixin;
template<typename Cur>
struct RANGES_EMPTY_BASES basic_iterator;
template<cardinality>
struct basic_view : view_base
{};
template<typename Derived, cardinality C = finite>
struct view_facade;
template<typename Derived, typename BaseRng,
cardinality C = range_cardinality<BaseRng>::value>
struct view_adaptor;
template<typename I, typename S>
struct common_iterator;
/// \cond
namespace detail
{
template<typename I>
struct cpp17_iterator_cursor;
template<typename I>
using cpp17_iterator = basic_iterator<cpp17_iterator_cursor<I>>;
} // namespace detail
/// \endcond
template<typename First, typename Second>
struct compressed_pair;
template<typename T>
struct bind_element;
template<typename T>
using bind_element_t = meta::_t<bind_element<T>>;
template<typename Derived, cardinality = finite>
struct view_interface;
template<typename T>
struct istream_view;
template<typename I, typename S = I>
struct RANGES_EMPTY_BASES iterator_range;
template<typename I, typename S = I>
struct sized_iterator_range;
template<typename T>
struct reference_wrapper;
// Views
//
template<typename Rng, typename Pred>
struct RANGES_EMPTY_BASES adjacent_filter_view;
namespace views
{
struct adjacent_filter_fn;
}
template<typename Rng, typename Pred>
struct RANGES_EMPTY_BASES adjacent_remove_if_view;
namespace views
{
struct adjacent_remove_if_fn;
}
namespace views
{
struct all_fn;
}
template<typename Rng>
struct const_view;
namespace views
{
struct const_fn;
}
template<typename I>
struct counted_view;
namespace views
{
struct counted_fn;
}
struct default_sentinel_t;
template<typename I>
struct move_iterator;
template<typename I>
using move_into_iterator = basic_iterator<detail::move_into_cursor<I>>;
template<typename Rng, bool = (bool)is_infinite<Rng>()>
struct RANGES_EMPTY_BASES cycled_view;
namespace views
{
struct cycle_fn;
}
/// \cond
namespace detail
{
template<typename I>
struct reverse_cursor;
}
/// \endcond
template<typename I>
using reverse_iterator = basic_iterator<detail::reverse_cursor<I>>;
template<typename T>
struct empty_view;
namespace views
{
struct empty_fn;
}
template<typename Rng, typename Fun>
struct group_by_view;
namespace views
{
struct group_by_fn;
}
template<typename Rng>
struct indirect_view;
namespace views
{
struct indirect_fn;
}
struct unreachable_sentinel_t;
template<typename From, typename To = unreachable_sentinel_t>
struct iota_view;
template<typename From, typename To = From>
struct closed_iota_view;
namespace views
{
struct iota_fn;
struct closed_iota_fn;
} // namespace views
template<typename Rng>
struct join_view;
template<typename Rng, typename ValRng>
struct join_with_view;
namespace views
{
struct join_fn;
}
template<typename... Rngs>
struct concat_view;
namespace views
{
struct concat_fn;
}
template<typename Rng, typename Fun>
struct partial_sum_view;
namespace views
{
struct partial_sum_fn;
}
template<typename Rng>
struct move_view;
namespace views
{
struct move_fn;
}
template<typename Rng>
struct ref_view;
namespace views
{
struct ref_fn;
}
template<typename Val>
struct repeat_view;
namespace views
{
struct repeat_fn;
}
template<typename Rng>
struct RANGES_EMPTY_BASES reverse_view;
namespace views
{
struct reverse_fn;
}
template<typename Rng>
struct slice_view;
namespace views
{
struct slice_fn;
}
// template<typename Rng, typename Fun>
// struct split_view;
// namespace views
// {
// struct split_fn;
// }
template<typename Rng>
struct single_view;
namespace views
{
struct single_fn;
}
template<typename Rng>
struct stride_view;
namespace views
{
struct stride_fn;
}
template<typename Rng>
struct take_view;
namespace views
{
struct take_fn;
}
/// \cond
namespace detail
{
template<typename Rng>
struct is_random_access_common_;
template<typename Rng,
bool IsRandomAccessCommon = is_random_access_common_<Rng>::value>
struct take_exactly_view_;
} // namespace detail
/// \endcond
template<typename Rng>
using take_exactly_view = detail::take_exactly_view_<Rng>;
namespace views
{
struct take_exactly_fn;
}
template<typename Rng, typename Pred>
struct iter_take_while_view;
template<typename Rng, typename Pred>
struct take_while_view;
namespace views
{
struct iter_take_while_fn;
struct take_while_fn;
} // namespace views
template<typename Rng, typename Regex, typename SubMatchRange>
struct tokenize_view;
namespace views
{
struct tokenize_fn;
}
template<typename Rng, typename Fun>
struct iter_transform_view;
template<typename Rng, typename Fun>
struct transform_view;
namespace views
{
struct transform_fn;
}
template<typename Rng, typename Val1, typename Val2>
using replace_view = iter_transform_view<Rng, detail::replacer_fn<Val1, Val2>>;
template<typename Rng, typename Pred, typename Val>
using replace_if_view = iter_transform_view<Rng, detail::replacer_if_fn<Pred, Val>>;
namespace views
{
struct replace_fn;
struct replace_if_fn;
} // namespace views
template<typename Rng, typename Pred>
struct trim_view;
namespace views
{
struct trim_fn;
}
template<typename I>
struct unbounded_view;
namespace views
{
struct unbounded_fn;
}
template<typename Rng>
using unique_view = adjacent_filter_view<Rng, logical_negate<equal_to>>;
namespace views
{
struct unique_fn;
}
template<typename Rng>
using keys_range_view = transform_view<Rng, detail::get_first>;
template<typename Rng>
using values_view = transform_view<Rng, detail::get_second>;
namespace views
{
struct keys_fn;
struct values_fn;
} // namespace views
template<typename Fun, typename... Rngs>
struct iter_zip_with_view;
template<typename Fun, typename... Rngs>
struct zip_with_view;
template<typename... Rngs>
struct zip_view;
namespace views
{
struct iter_zip_with_fn;
struct zip_with_fn;
struct zip_fn;
} // namespace views
} // namespace ranges
/// \cond
namespace ranges
{
namespace concepts = ::concepts;
using namespace ::concepts::defs;
using ::concepts::and_v;
} // namespace ranges
/// \endcond
RANGES_DIAGNOSTIC_POP
#include <range/v3/detail/epilogue.hpp>
#endif