Euphoria
size.h
Go to the documentation of this file.
1#pragma once
2
3namespace eu
4{
10 struct Size
11 {
12 int width;
13 int height;
14 };
15 constexpr bool operator==(const Size& lhs, const Size& rhs)
16 {
17 return lhs.width == rhs.width
18 && lhs.height == rhs.height;
19 }
20
22 std::string string_from(const Size& v);
23
25}
26
27ADD_DEFAULT_FORMATTER(eu::Size, std::string, eu::string_from);
std::string string_from(const An &a)
Definition assert.h:111
bool operator==(const Guid &lhs, const Guid &rhs)
A (inclusive) range between two values.
Definition range.h:19
a size
Definition size.h:11
int width
Definition size.h:12
int height
Definition size.h:13