mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-02 14:04:20 +00:00
sprout/checksum/sha1.hpp 追加
sprout/null_array.hpp -> sprout/pit.hpp リネーム sprout/uuid.hpp 追加
This commit is contained in:
parent
9074c9a1cf
commit
0f8db75fca
22 changed files with 2126 additions and 86 deletions
|
@ -945,26 +945,26 @@ namespace std {
|
|||
//
|
||||
template<std::size_t I, typename Container>
|
||||
typename sprout::fixed_container_traits<sprout::sub_array<Container> >::value_type& get(
|
||||
sprout::sub_array<Container>& arr
|
||||
) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(*sprout::next(sprout::fixed_begin(arr), I)))
|
||||
sprout::sub_array<Container>& t
|
||||
) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(*sprout::next(sprout::fixed_begin(t), I)))
|
||||
{
|
||||
static_assert(I < sprout::fixed_container_traits<sprout::sub_array<Container> >::fixed_size, "get: index out of range");
|
||||
return *sprout::next(sprout::fixed_begin(arr), I);
|
||||
return *sprout::next(sprout::fixed_begin(t), I);
|
||||
}
|
||||
template<std::size_t I, typename Container>
|
||||
SPROUT_CONSTEXPR typename sprout::fixed_container_traits<sprout::sub_array<Container> >::value_type const& get(
|
||||
sprout::sub_array<Container> const& arr
|
||||
) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(*sprout::next(sprout::fixed_begin(arr), I)))
|
||||
sprout::sub_array<Container> const& t
|
||||
) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(*sprout::next(sprout::fixed_begin(t), I)))
|
||||
{
|
||||
static_assert(I < sprout::fixed_container_traits<sprout::sub_array<Container> >::fixed_size, "get: index out of range");
|
||||
return *sprout::next(sprout::fixed_begin(arr), I);
|
||||
return *sprout::next(sprout::fixed_begin(t), I);
|
||||
}
|
||||
template<std::size_t I, typename Container>
|
||||
typename sprout::fixed_container_traits<sprout::sub_array<Container> >::value_type&& get(
|
||||
sprout::sub_array<Container>&& arr
|
||||
) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(std::move(std::get<I>(arr))))
|
||||
sprout::sub_array<Container>&& t
|
||||
) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(std::move(std::get<I>(t))))
|
||||
{
|
||||
return std::move(std::get<I>(arr));
|
||||
return std::move(std::get<I>(t));
|
||||
}
|
||||
} // namespace std
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue