14#if COMMS_HAS_CPP20_SPAN
33 template <
typename TIter>
34 static RetType
construct(TIter from, TIter to)
36 return RetType(from, to);
40#if COMMS_HAS_CPP20_SPAN
41template <
typename T, std::
size_t TExtent>
42class ConstructHelper<
std::span<T, TExtent>>
45 using RetType = std::span<T, TExtent>;
47 template <
typename TIter>
48 static RetType
construct(TIter from, TIter to)
50 return RetType(&(*from),
static_cast<typename RetType::size_type
>(std::distance(from, to)));
Contains various compiler related definitions.
T construct(TIter from, TIter to)
Construct collection objects given two range iterators.
Definition construct.h:26
Main namespace for all classes / functions of COMMS library.