Initial Course

This commit is contained in:
David Gil de Gómez Pérez
2026-08-11 17:40:36 +03:00
commit 9aed1d1d86
202 changed files with 3420 additions and 0 deletions
@@ -0,0 +1,9 @@
#include "move_semantics.hpp"
#include <gtest/gtest.h>
TEST(MoveSemantics, MoveTransfersOwnership) {
cpp11::MovableBuffer source{{1, 2, 3}};
const auto moved_size = cpp11::consume(std::move(source));
EXPECT_EQ(moved_size, 3U);
EXPECT_EQ(source.size(), 0U);
}