Utility#
-
namespace stapl
-
namespace util#
Utility functions.
Functions
-
template<typename T, size_t N>
std::vector<T> make_vector(std::array<T, N> &&arr)# Make
std::vectorfromstd::array.Copied from stack overflow.
- Template Parameters:
T – Type of elements.
N – Size of
std::array.
- Parameters:
arr –
std::arrayto be converted.- Returns:
std::vectorwith elements fromarr.
-
template<typename T, typename ...U>
auto make_vector(U&&... t)# Make
std::vectorfrom variadic arguments.Copied from stack overflow. This function is useful when creating
std::vector<T>of move-only types.- Template Parameters:
T – Type of elements in created
std::vector.U – Template parameter pack of varadic arguments.
- Parameters:
t – Variadic arguments.
- Returns:
std::vector<T>with elements fromt.
-
template<typename T, size_t N>
-
namespace util#