xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
control_ref.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/object.h>
6 
8 namespace xtd {
10  namespace forms {
12  class control;
14 
21  using control_ref = std::reference_wrapper<control>;
22 
29  using const_control_ref = std::reference_wrapper<const control>;
30 
37  struct control_ref_less : public object {
42  bool operator()(const control_ref& value1, const control_ref& value2) const {
43  return &value1.get() < &value2.get();
44  }
45  };
46 
58  bool operator()(const const_control_ref& value1, const const_control_ref& value2) const {
59  return &value1.get() < &value2.get();
60  }
61  };
62  }
63 }
Represents less comparator for const const_control_ref.
Definition: control_ref.h:53
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::reference_wrapper< const control > const_control_ref
Represents a const control reference.
Definition: control_ref.h:29
bool operator()(const control_ref &value1, const control_ref &value2) const
Compare two specified control_ref.
Definition: control_ref.h:42
Contains xtd::object class.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:26
Represents less comparator for control_ref.
Definition: control_ref.h:37
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
std::reference_wrapper< control > control_ref
Represents a control reference.
Definition: control_ref.h:21
bool operator()(const const_control_ref &value1, const const_control_ref &value2) const
Compare two specified const_control_ref.
Definition: control_ref.h:58
The left or right CTRL modifier key.