Header file range/v3/view/reverse.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_adaptor.hpp>

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

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

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

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

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

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

namespace ranges
{
    inline namespace v3
    {
        namespace detail
        {
            template <typename Rng>
            using reverse_end_ = meta::if_<BoundedRange<Rng>, meta::nil_, box<optional<range_iterator_t<Rng>>, end_tag>>;
        }
        
        template <typename Rng>
        struct reverse_view;
        
        namespace view
        {
            struct reverse_fn
            {
                template <typename Rng>
                using Concept = BidirectionalRange<Rng>;
                
                template <typename Rng, int _concept_requires_210 = 42, typename std::enable_if<(_concept_requires_210==43)||(Concept<Rng>()), int>::type=0>
                reverse_view<all_t<Rng>> operator()(Rng&& rng) const;
                
                template <typename Rng, int _concept_requires_217 = 42, typename std::enable_if<(_concept_requires_217==43)||(!Concept<Rng>()), int>::type=0>
                void operator()(Rng&&) const;
            };
            
            inline namespace 
            {
                constexpr auto& reverse = static_const<view<reverse_fn>>::value;
            }
        }
    }
}

Class template ranges::v3::reverse_view<Rng>

template <typename Rng>
struct reverse_view
: view_adaptor<reverse_view<Rng>, Rng>
{
    reverse_view() = default;
    
    reverse_view(reverse_view&& that);
    
    reverse_view(reverse_view const& that);
    
    explicit reverse_view(Rng rng);
    
    reverse_view& operator=(reverse_view&& that);
    
    reverse_view& operator=(reverse_view const& that);
    
    template <int _concept_requires_191 = 42, typename std::enable_if<(_concept_requires_191==43)||(SizedRange<Rng>()||RandomAccessRange<Rng>()), int>::type=0>
    range_size_t<Rng> size();
    
    template <int _concept_requires_196 = 42, typename std::enable_if<(_concept_requires_196==43)||(SizedRange<Rng const>()), int>::type=0>
    range_size_t<Rng> size() const;
};

@{