mirror of https://github.com/AxioDL/metaforce.git
rstl: Amend unrelated clang-format discrepancies
Avoids others being hit by these if any changes in the header ever need to be made in the future.
This commit is contained in:
parent
15e856404d
commit
18f64dac8d
|
@ -267,15 +267,13 @@ private:
|
||||||
}
|
}
|
||||||
template <typename Tp>
|
template <typename Tp>
|
||||||
static void
|
static void
|
||||||
destroy(Tp& t, std::enable_if_t<!std::is_destructible_v<Tp> || std::is_trivially_destructible_v<Tp>>* = nullptr) {
|
destroy(Tp& t, std::enable_if_t<!std::is_destructible_v<Tp> || std::is_trivially_destructible_v<Tp>>* = nullptr) {}
|
||||||
}
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
reserved_vector() noexcept(std::is_nothrow_constructible_v<T>) : x0_size(0) {}
|
reserved_vector() noexcept(std::is_nothrow_constructible_v<T>) : x0_size(0) {}
|
||||||
|
|
||||||
template <size_t LN>
|
template <size_t LN>
|
||||||
reserved_vector(const T (&l)[LN]) noexcept(std::is_nothrow_copy_constructible_v<T>)
|
reserved_vector(const T (&l)[LN]) noexcept(std::is_nothrow_copy_constructible_v<T>) : x0_size(LN) {
|
||||||
: x0_size(LN) {
|
|
||||||
static_assert(LN <= N, "initializer array too large for reserved_vector");
|
static_assert(LN <= N, "initializer array too large for reserved_vector");
|
||||||
for (size_t i = 0; i < LN; ++i) {
|
for (size_t i = 0; i < LN; ++i) {
|
||||||
::new (static_cast<void*>(std::addressof(_value(i)))) T(l[i]);
|
::new (static_cast<void*>(std::addressof(_value(i)))) T(l[i]);
|
||||||
|
|
Loading…
Reference in New Issue