xtd 0.2.0
Loading...
Searching...
No Matches
iclonable.h
Go to the documentation of this file.
1
4#pragma once
5#include "interface.h"
6#include "object.h"
7
9namespace xtd {
22 public:
24
31 virtual xtd::uptr<xtd::object> clone() const = 0;
33 };
34}
Supports cloning, which creates a new instance of a class with the same value as an existing instance...
Definition iclonable.h:21
virtual xtd::uptr< xtd::object > clone() const =0
Creates a new object that is a copy of the current instance.
#define interface_
This keyword is use to represent an interface.
Definition interface.h:58
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
Contains xtd::interface interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::object class.