Skip to content

Instantly share code, notes, and snippets.

@BluBb-mADe
Created July 15, 2024 22:17
Show Gist options
  • Save BluBb-mADe/60108f44285345f02ad44b90aa9d8f54 to your computer and use it in GitHub Desktop.
Save BluBb-mADe/60108f44285345f02ad44b90aa9d8f54 to your computer and use it in GitHub Desktop.
A basic vizualizer for the boost container static vector. It's not great but its a lot better than nothing.
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="boost::container::static_vector&lt;*&gt;">
<DisplayString>{{ size={m_holder.m_size} }}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">m_holder.m_size</Item>
<Item Name="[capacity]" ExcludeView="simple">static_capacity</Item>
<ArrayItems>
<Size>m_holder.m_size</Size>
<ValuePointer>($T1*)m_holder.storage.data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
</AutoVisualizer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment