Skip to content

Commit 55e0e78

Browse files
committed
Update fixed size assignment op and constructors
1 parent d6b00ff commit 55e0e78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/beman/inplace_vector/inplace_vector.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ struct inplace_vector
609609
std::copyable<T>)
610610
{
611611
for (auto &&e : x)
612-
emplace_back(e);
612+
unchecked_emplace_back(e);
613613
}
614614

615615
constexpr inplace_vector(inplace_vector &&x)
@@ -621,7 +621,7 @@ struct inplace_vector
621621
std::movable<T>)
622622
{
623623
for (auto &&e : x)
624-
emplace_back(std::move(e));
624+
unchecked_emplace_back(std::move(e));
625625
}
626626

627627
constexpr inplace_vector &operator=(const inplace_vector &x)
@@ -639,7 +639,7 @@ struct inplace_vector
639639
{
640640
clear();
641641
for (auto &&e : x)
642-
emplace_back(e);
642+
unchecked_emplace_back(e);
643643
return *this;
644644
}
645645

@@ -658,7 +658,7 @@ struct inplace_vector
658658
{
659659
clear();
660660
for (auto &&e : x)
661-
emplace_back(std::move(e));
661+
unchecked_emplace_back(std::move(e));
662662
return *this;
663663
}
664664

0 commit comments

Comments
 (0)