Converts a kumi::array to an instance of an arbitrary type.
More...
Converts a kumi::array to an instance of an arbitrary type.
◆ from_array
template<typename Type>
| from_array_t<Type> kumi::from_array {} |
|
inlineconstexprnodiscard |
Constructs an instance of Type by passing elements of t to the appropriate constructor.
{
template<typename Type, concepts::product_type T>
}
constexpr from_array_t< Type > from_array
Definition array.hpp:523
Main KUMI namespace.
Definition algorithm.hpp:11
- An instance of Type constructed from each element of t in order.
#include <kumi/kumi.hpp>
#include <iostream>
struct point3
{
int x;
int y;
int z;
};
int main()
{
std::cout << p.x << ' ' << p.y << ' ' << p.z << "\n";
}
Fixed-size collection of homogeneous values.
Definition array.hpp:43