#include <comstl/util/value_policies.hpp>
Public Types | |
typedef BSTR | 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 BSTR
type, this involves setting the value to NULL
static void copy | ( | value_type * | dest, | |
value_type const * | src | |||
) | [inline, static] |
Initialises an instance from another.
In the case of the BSTR
type, this involves calling SysAllocString()
comstl::com_exception | If exception support is enabled, an instance of comstl::com_exception will be thrown if the copy cannot be made |
static void clear | ( | value_type * | p | ) | throw () [inline, static] |
Releases an instance.
In the case of the BSTR
type, this involves calling SysFreeString()