4#ifndef TETL_MEMORY_UNINITIALIZED_MOVE_HPP
5#define TETL_MEMORY_UNINITIALIZED_MOVE_HPP
7#include <etl/_memory/addressof.hpp>
8#include <etl/_memory/construct_at.hpp>
9#include <etl/_memory/destroy.hpp>
10#include <etl/_utility/move.hpp>
14template <
typename InputIt,
typename NoThrowForwardIt>
15constexpr auto uninitialized_move(InputIt first, InputIt last, NoThrowForwardIt dest) -> NoThrowForwardIt
17#if defined(__cpp_exceptions)
20 for (; first != last; ++first, (
void)++current) {
21 etl::construct_at(
etl::addressof(*current),
etl::move(*first));
25 etl::destroy(dest, current);
30 for (; first != last; ++first, (
void)++current) {
31 etl::construct_at(etl::addressof(*current), etl::move(*first));
Definition adjacent_find.hpp:9
constexpr auto uninitialized_move(InputIt first, InputIt last, NoThrowForwardIt dest) -> NoThrowForwardIt
Definition uninitialized_move.hpp:15