7#ifndef PXR_EXEC_VDF_ESTIMATE_SIZE_H
8#define PXR_EXEC_VDF_ESTIMATE_SIZE_H
19PXR_NAMESPACE_OPEN_SCOPE
53template <
typename T >
62template <
typename T, u
int32_t N >
70 const size_t elementSize = v.
empty()
77template <
typename T,
typename A >
84 const size_t elementSize = v.empty()
86 return sizeof(std::vector<T, A>) + v.capacity() * elementSize;
91template <
typename T >
98PXR_NAMESPACE_CLOSE_SCOPE
This is a small-vector class with local storage optimization, the local storage can be specified via ...
bool empty() const
Returns true if this vector is empty.
reference front()
Returns the first element in the vector.
size_type capacity() const
Returns the current capacity of this vector.
size_t VdfEstimateSize(const T &)
Estimate the memory footprint of instance t of type T.