17#if COMMS_HAS_CPP20_SPAN
36 template <
typename TIter>
37 static RetType
construct(TIter from, TIter to)
39 return RetType(from, to);
43#if COMMS_HAS_CPP20_SPAN
44template <
typename T, std::
size_t TExtent>
45class ConstructHelper<
std::span<T, TExtent>>
48 using RetType = std::span<T, TExtent>;
50 template <
typename TIter>
51 static RetType
construct(TIter from, TIter to)
53 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:28
Main namespace for all classes / functions of COMMS library.