This documentation is automatically generated by online-judge-tools/verification-helper
#include "kpr/template/range_cast.hpp"#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