, .
: Intrinsic XML, This expression has side effects....
:
, :
namespace rkstl
{
    namespace strings
    {
        
        class string 
        {
         public:    
             
             length(); 
             capacity(); 
             clear();
             
         private:
             char* _pStr; 
             size_t _mSize; 
             size_t _mCap; 
        };
        
        class wstring
        {
         
        };
    }
}
, length() capacity() . , .XML, This expression has side effects..., ( ), , :
<Type Name="rkstl::strings::string">
<DisplayString>{_pStr,na}</DisplayString>
<StringView>_pStr,na</StringView>
<Expand>
  <Item Name="[string length]" ExcludeView="simple">length()</Item>
  <Item Name="[buffer capacity]" ExcludeView="simple">capacity()</Item>
  <ArrayItems>
    <Size>_pEnd - _pBegin</Size>
    <ValuePointer>_pStr</ValuePointer>
  </ArrayItems>
</Expand>
, , . .natvis XML. .natvis rkstl::strings::string:
<Type Name="rkstl::strings::string">
<Intrinsic Name="length_dbg" Expression="(_mSize)"/>
<Intrinsic Name="capacity_dbg" Expression="(_mCap)"/>
<DisplayString>{_pStr,na}</DisplayString>
<StringView>_pStr,na</StringView>
<Expand>
  <Item Name="[length of the string]" ExcludeView="simple">length_dbg()</Item>
  <Item Name="[capacity of the buffer]" ExcludeView="simple">capacity_dbg()</Item>
  <ArrayItems>
    <Size>_pEnd - _pBegin</Size>
    <ValuePointer>_pStr</ValuePointer>
  </ArrayItems>
</Expand>
, length_dbg() capacity_dbg() . , , . :
