template<class TY>
class lib::ScopedHolder< TY >
Inline buffer holding and owning an object similar to unique_ptr.
Access to the contained object is similar to a smart-pointer, but the object isn't heap allocated, rather placed into an buffer within ScopedHolder. Initially, ScopedHolder is empty and behaves like a null pointer. The contained object must be created explicitly by calling #create() (using the default ctor). This state change is remembered (requiring 1 char of additional storage). After the creation of the object, ScopedHolder is effectively noncopyable, which is enforced by run-time checks. ScopedHolder may be used to hold noncopyable objects within STL containers inline without extra heap allocation.
Definition at line 144 of file scoped-holder.hpp.