Run clang-format

This commit is contained in:
Bassem Girgis
2018-10-18 00:40:34 -05:00
parent fffe4528da
commit 31c32e368a
149 changed files with 5974 additions and 6287 deletions

View File

@@ -1,17 +1,15 @@
class move_only
{
std::unique_ptr<my_class> data;
class move_only {
std::unique_ptr<my_class> data;
public:
move_only(const move_only&) = delete;
move_only(move_only&& other):
data(std::move(other.data))
{}
move_only& operator=(const move_only&) = delete;
move_only& operator=(move_only&& other)
{
data=std::move(other.data);
return *this;
}
move_only(const move_only&) = delete;
move_only(move_only&& other) : data(std::move(other.data)) {}
move_only& operator=(const move_only&) = delete;
move_only& operator =(move_only&& other)
{
data = std::move(other.data);
return *this;
}
};
move_only m1;
move_only m2(m1);