xtd 0.2.0
Loading...
Searching...
No Matches
iclonable.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "interface.hpp"
6#include "object.hpp"
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.hpp: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.hpp:58
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
Contains xtd::interface interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::object class.