LLDB mainline
|
A class that implements CRTP-based "virtual constructor" idiom. More...
#include "lldb/Utility/Cloneable.h"
Public Member Functions | |
std::shared_ptr< typename Base::TopmostBase > | Clone () const override |
A class that implements CRTP-based "virtual constructor" idiom.
Example:
To define a class derived from the Base with overridden Clone:
To define a class at the next level of inheritance with overridden Clone:
Definition at line 40 of file Cloneable.h.
|
inlineoverride |
Reimplemented in lldb_private::Cloneable< ProcessExperimentalOptionValueProperties, OptionValueProperties >, lldb_private::Cloneable< ProcessOptionValueProperties, OptionValueProperties >, lldb_private::Cloneable< TargetExperimentalOptionValueProperties, OptionValueProperties >, lldb_private::Cloneable< TargetOptionValueProperties, OptionValueProperties >, lldb_private::Cloneable< ThreadOptionValueProperties, OptionValueProperties >, and lldb_private::OptionValueFileSpecList.
Definition at line 44 of file Cloneable.h.
Referenced by lldb_private::OptionValueFileSpecList::Clone().