35 #ifndef _BLAZE_UTIL_ALGORITHMS_UNINITIALIZEDDEFAULTCONSTRUCT_H_ 36 #define _BLAZE_UTIL_ALGORITHMS_UNINITIALIZEDDEFAULTCONSTRUCT_H_ 66 template<
class ForwardIt >
69 using Value =
typename std::iterator_traits<ForwardIt>::value_type;
71 ForwardIt current( first );
74 for( ; current!=last; ++current ) {
75 ::new ( std::addressof( *current ) ) Value;
79 for( ; first!=current; ++first ) {
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
void uninitialized_default_construct(ForwardIt first, ForwardIt last)
Default constructs elements in the given range.
Definition: UninitializedDefaultConstruct.h:67