35#ifndef _BLAZE_UTIL_ALGORITHMS_UNINITIALIZEDDEFAULTCONSTRUCT_H_
36#define _BLAZE_UTIL_ALGORITHMS_UNINITIALIZEDDEFAULTCONSTRUCT_H_
68template<
typename ForwardIt >
71 using T =
typename std::iterator_traits<ForwardIt>::value_type;
73 ForwardIt current( first );
76 for( ; current!=last; ++current ) {
77 ::new ( std::addressof( *current ) ) T;
99template<
typename ForwardIt >
102 using T =
typename std::iterator_traits<ForwardIt>::value_type;
104 ForwardIt current( first );
107 for( ; n > 0UL; (void) ++current, --n ) {
108 ::new ( std::addressof( *current ) ) T;
Header file for the generic destroy algorithm.
void uninitialized_default_construct_n(ForwardIt first, size_t n)
Default constructs elements in the given range.
Definition: UninitializedDefaultConstruct.h:100
void destroy(ForwardIt first, ForwardIt last)
Destroys the given range of objects .
Definition: Destroy.h:67
void uninitialized_default_construct(ForwardIt first, ForwardIt last)
Default constructs elements in the given range.
Definition: UninitializedDefaultConstruct.h:69
Header file for basic type definitions.