46#ifndef AH_CONVERT_COMMON_H
47#define AH_CONVERT_COMMON_H
72[[nodiscard]] std::vector<typename C::Item_Type>
to_vector(
const C & c)
74 std::vector<typename C::Item_Type> ret;
75 if constexpr (
requires { c.size(); })
76 ret.reserve(c.size());
77 if constexpr (
requires { c.get_it(); })
79 for (
auto it = c.get_it(); it.has_curr(); it.next_ne())
80 ret.push_back(it.get_curr());
84 for (
const auto & item : c)
105 for (
const auto & item : v)
125 for (
const auto & item : v)
T & append()
Allocate a new entry to the end of array.
Doubly-linked list (defined in tpl_dynList.H).
T & append(const T &item)
Singly linked list implementations with head-tail access.
Main namespace for Aleph-w library functions.
DynList< T > vector_to_DynList(const std::vector< T > &v)
Convert a std::vector to a DynList.
DynArray< T > vector_to_DynArray(const std::vector< T > &v)
Convert a std::vector to a DynArray.
std::vector< typename C::Item_Type > to_vector(const C &c)
Convert a container to a std::vector.
Lazy and scalable dynamic array implementation.