|
||||
File indexing completed on 2025-01-18 09:54:39
0001 #ifndef CLHEP_MEMORY_H 0002 #define CLHEP_MEMORY_H 0003 0004 // ====================================================================== 0005 // 0006 // memory - memory management utilities 0007 // 0008 // ====================================================================== 0009 0010 #include "CLHEP/Utility/defs.h" 0011 0012 #include <memory> 0013 0014 namespace CLHEP { 0015 0016 template < typename T > 0017 using shared_ptr = std::shared_ptr<T>; 0018 template < typename T > 0019 using weak_ptr = std::weak_ptr<T>; 0020 0021 // ---------------------------------------------------------------------- 0022 // do_nothing_deleter - for shared_ptrs not taking ownership 0023 // ---------------------------------------------------------------------- 0024 0025 struct do_nothing_deleter { 0026 inline void operator () ( void const * ) const; 0027 }; 0028 0029 void 0030 do_nothing_deleter::operator () ( void const * ) const 0031 { } 0032 0033 0034 } // namespace CLHEP 0035 0036 #endif // CLHEP_MEMORY_H 0037 // 0038 // ======================================================================
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |