kyopro library

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub Chipppppppppp/kyopro

:warning: kpr/template/range_cast.hpp

Required by

Code

#pragma once
#include <iterator>

namespace kpr {
    // Rangeの型変換
    template<class To>
    struct RangeCast {
        template<class From>
        constexpr To operator ()(From&& container) const noexcept {
            return To(std::begin(container), std::end(container));
        }
    };

    template<class To>
    inline constexpr RangeCast<To> range_cast;
} // namespace kpr
#line 2 "kpr/template/range_cast.hpp"
#include <iterator>

namespace kpr {
    // Rangeの型変換
    template<class To>
    struct RangeCast {
        template<class From>
        constexpr To operator ()(From&& container) const noexcept {
            return To(std::begin(container), std::end(container));
        }
    };

    template<class To>
    inline constexpr RangeCast<To> range_cast;
} // namespace kpr
Back to top page