Skip to content

Commit

Permalink
More review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed May 7, 2024
1 parent ceef47f commit 6d6d441
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,20 @@
* *
* SPDX-License-Identifier: BSD-3-Clause *
****************************************************************************/
#ifndef ARBORX_DETAILS_KOKKOS_EXT_STD_MEMORY_HPP
#define ARBORX_DETAILS_KOKKOS_EXT_STD_MEMORY_HPP
#ifndef ARBORX_DETAILS_KOKKOS_EXT_UNINITIALIZED_MEMORY_ALGORITHMS_HPP
#define ARBORX_DETAILS_KOKKOS_EXT_UNINITIALIZED_MEMORY_ALGORITHMS_HPP

#include <Kokkos_Assert.hpp>
#include <Kokkos_Macros.hpp>

#include <utility>

namespace ArborX::Details::KokkosExt
{

template <class T, class... Args>
KOKKOS_FUNCTION constexpr T *construct_at(T *p, Args &&...args)
{
return ::new (const_cast<void *>(static_cast<void const volatile *>(p)))
T(std::forward<Args>(args)...);
T((Args &&) args...);
}

template <class T>
Expand Down

0 comments on commit 6d6d441

Please sign in to comment.