mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-02 11:54:27 +02:00
@@ -134,6 +134,7 @@ public:
|
|||||||
quantity_point& operator=(quantity_point&&) = default;
|
quantity_point& operator=(quantity_point&&) = default;
|
||||||
|
|
||||||
// data access
|
// data access
|
||||||
|
[[nodiscard]] constexpr quantity_type& relative() & noexcept { return q_; }
|
||||||
[[nodiscard]] constexpr const quantity_type& relative() const& noexcept { return q_; }
|
[[nodiscard]] constexpr const quantity_type& relative() const& noexcept { return q_; }
|
||||||
[[nodiscard]] constexpr quantity_type&& relative() && noexcept { return std::move(q_); }
|
[[nodiscard]] constexpr quantity_type&& relative() && noexcept { return std::move(q_); }
|
||||||
[[nodiscard]] constexpr const quantity_type&& relative() const&& noexcept { return std::move(q_); }
|
[[nodiscard]] constexpr const quantity_type&& relative() const&& noexcept { return std::move(q_); }
|
||||||
|
Reference in New Issue
Block a user