xtd 0.2.0
box_integer.h
Go to the documentation of this file.
1 #pragma once
5 #include "box.h"
6 
8 namespace xtd {
35  template<typename type_t>
36  class box_integer : public xtd::box<type_t> {
37  public:
39  box_integer() = default;
40  box_integer(const type_t& value) : xtd::box<type_t>(value) {}
41  box_integer(const box_integer&) = default;
42  box_integer(box_integer&&) = default;
43  box_integer& operator =(const box_integer&) = default;
45 
48  static constexpr type_t max_value = std::numeric_limits<type_t>::max();
51  static constexpr type_t min_value = std::numeric_limits<type_t>::lowest();
52  };
53 }
static constexpr type_t min_value
Represents the smallest possible value of type_t. This field is constant.
Definition: box_integer.h:51
Represents a boxed object.
Definition: box.h:47
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
const type_t & value() const noexcept
Gets the underlying value.
Definition: box.h:79
Contains xtd::box class.
Represents a boxed integer object.
Definition: box_integer.h:36
static constexpr type_t max_value
Represents the largest possible value of type_t. This field is constant.
Definition: box_integer.h:48