Header file range/v3/action/stride.hpp

#include <range/v3/range_fwd.hpp>

#include <range/v3/action/action.hpp>

#include <range/v3/action/erase.hpp>

#include <range/v3/utility/functional.hpp>

#include <range/v3/utility/iterator_concepts.hpp>

#include <range/v3/utility/iterator_traits.hpp>

#include <range/v3/utility/static_const.hpp>

namespace ranges
{
    inline namespace v3
    {
        namespace action
        {
            struct stride_fn
            {
                struct ConceptImpl
                {
                    template <typename Rng, typename T, typename I = range_iterator_t<Rng>, typename S = range_sentinel_t<Rng>, typename D = range_difference_t<Rng>>
                    decltype(concepts::valid_expr(concepts::model_of<concepts::ForwardRange, Rng>(), concepts::model_of<concepts::ErasableRange, Rng, I, S>(), concepts::model_of<concepts::ConvertibleTo, T, D>(), concepts::is_true(Permutable<I>()))) requires_(Rng&&, T&&);
                };
                
                template <typename Rng, typename T>
                using Concept = concepts::models<ConceptImpl, Rng, T>;
                
                template <typename Rng, typename D = range_difference_t<Rng>, int _concept_requires_64 = 42, typename std::enable_if<(_concept_requires_64==43)||(Concept<Rng, D>()), int>::type=0>
                Rng operator()(Rng&& rng, range_difference_t<Rng>const step) const;
                
                template <typename Rng, typename T, int _concept_requires_89 = 42, typename std::enable_if<(_concept_requires_89==43)||(!Concept<Rng, T>()), int>::type=0>
                void operator()(Rng&&, T&&) const;
            };
            
            inline namespace 
            {
                constexpr auto& stride = static_const<action<stride_fn>>::value;
            }
        }
    }
}