mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-02 14:04:20 +00:00
add template aliases type_traits
This commit is contained in:
parent
e3e130f58d
commit
f5b8b91255
10 changed files with 44 additions and 4 deletions
|
@ -24,12 +24,12 @@ namespace sprout {
|
|||
//
|
||||
template<typename... Types>
|
||||
inline SPROUT_CONSTEXPR sprout::array<
|
||||
typename sprout::common_decay<typename std::decay<Types>::type...>::type,
|
||||
typename sprout::common_decay<Types&&...>::type,
|
||||
sizeof...(Types)
|
||||
>
|
||||
make_common_array(Types&&... args) {
|
||||
typedef sprout::array<
|
||||
typename sprout::common_decay<typename std::decay<Types>::type...>::type,
|
||||
typename sprout::common_decay<Types&&...>::type,
|
||||
sizeof...(Types)
|
||||
> type;
|
||||
return type{{sprout::forward<Types>(args)...}};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue