Function operator=

Summary

#include <include/flecs/addons/cpp/world.hpp>

(1) world & operator=(const world &obj)=delete

(2) world & operator=(world &&obj)

Function overload

Synopsis

#include <include/flecs/addons/cpp/world.hpp>

world & operator=(const world &obj)=delete

Description

Not allowed to copy a world. May only take a reference.

Source

Line 129 in include/flecs/addons/cpp/world.hpp.

Synopsis

#include <include/flecs/addons/cpp/world.hpp>

world & operator=(world &&obj)

Description

No description yet.

Source

Lines 131-139 in include/flecs/addons/cpp/world.hpp.

world& operator=(world&& obj) {
    this->~world();
    m_world = obj.m_world;
    m_owned = obj.m_owned;
    obj.m_world = nullptr;
    obj.m_owned = false;
    return *this;
}