mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix: index_tuple metafunctions as index_tuple aliases (if Template-aliases enabled)
This commit is contained in:
parent
57011669a0
commit
c71502f6b6
11 changed files with 111 additions and 45 deletions
17
sprout/detail/sizeof.hpp
Normal file
17
sprout/detail/sizeof.hpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef SPROUT_DETAIL_SIZEOF_HPP
|
||||
#define SPROUT_DETAIL_SIZEOF_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace detail {
|
||||
template<typename... Ts>
|
||||
struct sizeof_pack
|
||||
: public std::integral_constant<std::size_t, sizeof...(Ts)>
|
||||
{};
|
||||
} // namespace detail
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_DETAIL_SIZEOF_HPP
|
Loading…
Add table
Add a link
Reference in a new issue