4#ifndef TETL_MEMORY_UNINITIALIZED_COPY_HPP
5#define TETL_MEMORY_UNINITIALIZED_COPY_HPP
7#include <etl/_memory/addressof.hpp>
8#include <etl/_memory/construct_at.hpp>
9#include <etl/_memory/destroy.hpp>
13template <
typename InputIt,
typename NoThrowForwardIt>
14constexpr auto uninitialized_copy(InputIt first, InputIt last, NoThrowForwardIt dest) -> NoThrowForwardIt
16#if defined(__cpp_exceptions)
19 for (; first != last; ++first, (
void)++current) {
20 etl::construct_at(
etl::addressof(*current), *first);
24 etl::destroy(dest, current);
29 for (; first != last; ++first, (
void)++current) {
30 etl::construct_at(etl::addressof(*current), *first);
Definition adjacent_find.hpp:9
constexpr auto uninitialized_copy(InputIt first, InputIt last, NoThrowForwardIt dest) -> NoThrowForwardIt
Definition uninitialized_copy.hpp:14