IsoSpec
2.1.2
IsoSpec++
conf.h
1
/*
2
* Copyright (C) 2015-2020 Mateusz Łącki and Michał Startek.
3
*
4
* This file is part of IsoSpec.
5
*
6
* IsoSpec is free software: you can redistribute it and/or modify
7
* it under the terms of the Simplified ("2-clause") BSD licence.
8
*
9
* IsoSpec is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
*
13
* You should have received a copy of the Simplified BSD Licence
14
* along with IsoSpec. If not, see <https://opensource.org/licenses/BSD-2-Clause>.
15
*/
16
17
#pragma once
18
19
namespace
IsoSpec
20
{
21
22
typedef
int
* Conf;
23
24
struct
ProbAndConfPtr
25
{
26
// For some reason std::pair isn't trivially copyable...
27
double
first;
28
Conf second;
29
30
ProbAndConfPtr
(
double
p, Conf c) : first(p), second(c) {}
31
32
bool
operator<(
const
ProbAndConfPtr
& other)
const
33
{
34
return
first < other.first;
35
}
36
};
37
38
}
// namespace IsoSpec
IsoSpec
Definition:
allocator.cpp:20
IsoSpec::ProbAndConfPtr
Definition:
conf.h:24
Generated by
1.8.17