MeshLib Documentation
Loading...
Searching...
No Matches
MRHeapBytes.h File Reference
#include "MRMeshFwd.h"
#include <vector>
#include <memory>

Go to the source code of this file.

Namespaces

namespace  MR
 

Functions

template<typename T >
size_t MR::heapBytes (const std::vector< T > &vec)
 returns the amount of memory given vector occupies on heap
 
template<typename T , typename U >
size_t MR::heapBytes (const Vector< T, U > &vec)
 
template<typename T >
size_t MR::heapBytes (const std::unique_ptr< T > &ptr)
 returns the amount of memory this smart pointer and its pointed object own together on heap
 
template<typename T >
size_t MR::heapBytes (const std::shared_ptr< T > &ptr)
 returns the amount of memory this smart pointer and its pointed object own together on heap
 
template<typename T >
size_t MR::heapBytes (const std::function< T > &)
 Needed for generic code, always returns zero.