OpenTTD Source
20240919-master-gdf0233f4c2
|
Adapter wrapper for CCountedPtr like classes that can't be used directly by stl collections as item type. More...
#include <countedptr.hpp>
Public Member Functions | |
AdaptT (const T &t) | |
construct by wrapping the given object | |
T & | operator= (const T &t) |
assignment operator | |
operator T& () | |
type-cast operator (used when AdaptT is used instead of T) | |
operator const T & () const | |
const type-cast operator (used when AdaptT is used instead of const T) | |
Data Fields | |
T | m_t |
Adapter wrapper for CCountedPtr like classes that can't be used directly by stl collections as item type.
For example CCountedPtr has overloaded operator & which prevents using CCountedPtr in stl collections (i.e. std::list<CCountedPtr<MyType> >)
Definition at line 161 of file countedptr.hpp.