.. _program_listing_file__tmp_ws_src_hpp-fcl_include_hpp_fcl_serialization_memory.h: Program Listing for File memory.h ================================= |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/hpp-fcl/include/hpp/fcl/serialization/memory.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // // Copyright (c) 2021 INRIA // #ifndef HPP_FCL_SERIALIZATION_MEMORY_H #define HPP_FCL_SERIALIZATION_MEMORY_H namespace hpp { namespace fcl { namespace internal { template struct memory_footprint_evaluator { static size_t run(const T &) { return sizeof(T); } }; } // namespace internal template size_t computeMemoryFootprint(const T &object) { return internal::memory_footprint_evaluator::run(object); } } // namespace fcl } // namespace hpp #endif // ifndef HPP_FCL_SERIALIZATION_MEMORY_H