Header file range/v3/action/take_while.hpp

#include <range/v3/range_fwd.hpp>

#include <range/v3/algorithm/find_if_not.hpp>

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

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

#include <range/v3/utility/iterator.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 take_while_fn
            {
                struct ConceptImpl
                {
                    template <typename Rng, typename Fun, typename I = range_iterator_t<Rng>, typename S = range_sentinel_t<Rng>>
                    decltype(concepts::valid_expr(concepts::model_of<concepts::ForwardRange, Rng>(), concepts::model_of<concepts::ErasableRange, Rng, I, S>(), concepts::is_true(IndirectCallablePredicate<Fun, I>{}))) requires_(Rng&&, Fun&&);
                };
                
                template <typename Rng, typename Fun>
                using Concept = concepts::models<ConceptImpl, Rng, Fun>;
                
                template <typename Rng, typename Fun, int _concept_requires_64 = 42, typename std::enable_if<(_concept_requires_64==43)||(Concept<Rng, Fun>()), int>::type=0>
                Rng operator()(Rng&& rng, Fun fun) const;
                
                template <typename Rng, typename Fun, int _concept_requires_74 = 42, typename std::enable_if<(_concept_requires_74==43)||(!Concept<Rng, Fun>()), int>::type=0>
                void operator()(Rng&&, Fun&&) const;
            };
            
            inline namespace 
            {
                constexpr auto& take_while = static_const<action<take_while_fn>>::value;
            }
        }
    }
}