String::StringHandle Class Template Reference

Detailed Description

template<class T>
class coherence::lang::String::StringHandle< T >

StringHandle provides standard TypedHandle features as well as auto-boxing support for standard string types including:.

char[] C-style NUL terminated char array

std::string STL string

std::wstring STL wide string

Boxing from wchar_t[] is supported, but requires an explicit constructor call in order to avoid ambiguity when assigning a String handle/view to NULL.

Unboxing to char[] and wchar[] is not supported as it is unsafe to maintain a reference to the underlying character array without holding a reference to the String. Unboxing to std::string, and std::wstring is both supported and safe.