MapLibre Native Core
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
Typedefs
a
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerations
a
b
c
e
f
h
i
k
l
m
n
o
r
s
t
v
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Related Functions
a
b
e
i
m
o
s
t
Files
File List
File Members
All
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
range.hpp
Go to the documentation of this file.
1
#include <utility>
2
3
#pragma once
4
5
namespace
mbgl
{
6
7
template
<
class
T>
8
class
Range
{
9
public
:
10
constexpr
Range
(T min_, T max_)
11
:
min
(
std
::move(min_)),
max
(
std
::move(max_)) {}
12
13
T
min
;
14
T
max
;
15
};
16
17
template
<
class
T>
18
bool
operator==
(
const
Range<T>
& a,
const
Range<T>
& b) {
19
return
a.
min
== b.
min
&& a.
max
== b.
max
;
20
}
21
22
template
<
class
T>
23
bool
operator!=
(
const
Range<T>
& a,
const
Range<T>
& b) {
24
return
!(a == b);
25
}
26
27
}
// namespace mbgl
mbgl::Range
Definition:
range.hpp:8
mbgl::Range::min
T min
Definition:
range.hpp:13
mbgl::Range::max
T max
Definition:
range.hpp:14
mbgl::Range::Range
constexpr Range(T min_, T max_)
Definition:
range.hpp:10
mbgl
Definition:
actor.hpp:15
mbgl::operator==
constexpr bool operator==(const CameraOptions &a, const CameraOptions &b)
Definition:
camera.hpp:50
mbgl::operator!=
constexpr bool operator!=(const CameraOptions &a, const CameraOptions &b)
Definition:
camera.hpp:59
std
Definition:
tile_id.hpp:256
include
mbgl
util
range.hpp
MapLibre website
|
GitHub repository