Wayverb
Main Page
Related Pages
Classes
Files
File List
range.h
1
#pragma once
2
3
#include "utilities/range.h"
4
5
#include "cereal/cereal.hpp"
6
7
namespace
cereal
{
8
9
template
<
typename
Archive,
typename
T>
10
void
load(Archive& archive,
util::range<T>
& range) {
11
T min, max;
12
archive(cereal::make_nvp(
"min"
, min), cereal::make_nvp(
"max"
, max));
13
range =
util::range<T>
{min, max};
14
}
15
16
template
<
typename
Archive,
typename
T>
17
void
save(Archive& archive,
const
util::range<T>
& range) {
18
archive(cereal::make_nvp(
"min"
, range.get_min()),
19
cereal::make_nvp(
"max"
, range.get_max()));
20
}
21
22
}
// namespace cereal
23
util::range
Definition:
range.h:12
cereal
Definition:
az_el.h:7
src
core
include
core
serialize
range.h
Generated by
1.8.11