mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add Vector iterator adapters.
This commit is contained in:
parent
40e9c8807d
commit
85e7125fee
@ -322,6 +322,11 @@ private:
|
|||||||
uint32_t m_size;
|
uint32_t m_size;
|
||||||
uint8_t m_capacity;
|
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()
|
#pragma pack()
|
||||||
|
|
||||||
enum { VectorSize = sizeof( Vector<int> ) };
|
enum { VectorSize = sizeof( Vector<int> ) };
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user