Allows to make managed copies of instances of Object. More...
#include </home/chochlik/devel/oglplus/include/oglplus/object.hpp>
Inherits oglplus::Object< ObjectOps >.
Allows to make managed copies of instances of Object.
For obvious reasons objects are not copyable, only movable. There may however be situations where a temporary copy of the "master" object (with the knowledge that the original will be kept alive during the whole lifetime of the copy) is needed. The Managed template class allows to do such temporary copies which have the same members and friend functions as the original object, and can be use in the same way, provided that the original instance is not destroyed before the managed copy.
Managed instances are may for be example created when accessing or iterating through the elements of an Array.