Header file range/v3/view/generate.hpp

#include <meta/meta.hpp>

#include <range/v3/range_fwd.hpp>

#include <range/v3/size.hpp>

#include <range/v3/begin_end.hpp>

#include <range/v3/range_traits.hpp>

#include <range/v3/view_facade.hpp>

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

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

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

namespace ranges
{
    inline namespace v3
    {
        template <typename G>
        struct generate_view;
        
        namespace view
        {
            struct generate_fn
            {
                template <typename G>
                using Concept = meta::and_<Function<G>, meta::not_<Same<void, concepts::Function::result_t<G>>>>;
                
                template <typename G, int _concept_requires_96 = 42, typename std::enable_if<(_concept_requires_96==43)||(Concept<G>()), int>::type=0>
                generate_view<G> operator()(G g) const;
                
                template <typename G, int _concept_requires_103 = 42, typename std::enable_if<(_concept_requires_103==43)||(!Concept<G>()), int>::type=0>
                void operator()(G) const;
            };
            
            inline namespace 
            {
                constexpr auto& generate = static_const<generate_fn>::value;
            }
        }
    }
}

Class template ranges::v3::generate_view<G>

template <typename G>
struct generate_view
: view_facade<generate_view<G>, infinite>
{
    generate_view() = default;
    
    explicit generate_view(G g);
    
    result_t& cached();
};

@{