Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-12-12 03:12:11

0001 #ifndef DataFormats_Common_interface_Uninitialized_h
0002 #define DataFormats_Common_interface_Uninitialized_h
0003 
0004 /* Uninitialized
0005  *
0006  * This is an empty struct used as a tag to signal that a constructor will leave an object (partially) uninitialised,
0007  * with the assumption that it will be overwritten before being used.
0008  * One expected use case is to replace the default constructor used when deserialising objects from a ROOT file.
0009  */
0010 
0011 namespace edm {
0012 
0013   struct Uninitialized {};
0014 
0015   constexpr inline Uninitialized kUninitialized;
0016 
0017 }  // namespace edm
0018 
0019 #endif  // DataFormats_Common_interface_Uninitialized_h