pluto-src 0.1.1+0.10.4

Sources of Pluto (Lua 5.4 dialect) and logic to build it.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <utility> // forward


#include "base.hpp"

NAMESPACE_SOUP
{
	// Like std::construct_at except it doesn't require C++ 20
	template <typename T, typename...Args>
	/*constexpr*/ T* construct_at(T* addr, Args&&...args)
		noexcept(noexcept(::new(addr) T(std::forward<Args>(args)...)))
	{
		return ::new(addr) T(std::forward<Args>(args)...);
	}
}