#include <comstl/util/value_policies.hpp>
Public Types | |
| typedef FORMATETC | value_type |
Static Public Member Functions | |
| static void | init (value_type *p) throw () |
| Initialises an instance. | |
| static void | copy (value_type *dest, value_type const *src) |
| Initialises an instance from another. | |
| static void | clear (value_type *p) throw () |
| Releases an instance. | |
| static void init | ( | value_type * | p | ) | throw () [inline, static] |
Initialises an instance.
In the case of the FORMATETC type, this involves setting the ptd member to NULL
| static void copy | ( | value_type * | dest, | |
| value_type const * | src | |||
| ) | [inline, static] |
Initialises an instance from another.
In the case of the FORMATETC type, this involves a straight byte-for-byte copy of the structure contents, following by invoking CoTaskMemAlloc() on the ptd member, to obtain a deep copy
| comstl::com_exception | If exception support is enabled, an instance of comstl::com_exception will be thrown if the copy cannot be made |
References stlsoft::sap_cast(), and stlsoft_ns_qual.
| static void clear | ( | value_type * | p | ) | throw () [inline, static] |
Releases an instance.
In the case of the FORMATETC type, this involves invoking CoTaskMemFree() on the ptd member
1.5.6