mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Add Vector iterator adapters.
This commit is contained in:
parent
40e9c8807d
commit
85e7125fee
@ -322,6 +322,11 @@ private:
|
||||
uint32_t m_size;
|
||||
uint8_t m_capacity;
|
||||
};
|
||||
|
||||
|
||||
template<typename T> struct VectorAdapterDirect { const T& operator()( const T& it ) const { return it; } };
|
||||
template<typename T> struct VectorAdapterPointer { const T& operator()( const short_ptr<T>& it ) const { return *it; } };
|
||||
|
||||
#pragma pack()
|
||||
|
||||
enum { VectorSize = sizeof( Vector<int> ) };
|
||||
|
Loading…
Reference in New Issue
Block a user