ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
Utility.h
Go to the documentation of this file.
1
/*
2
* Project: RooFit
3
* Authors:
4
* RA, Roel Aaij, NIKHEF
5
* PB, Patrick Bos, Netherlands eScience Center, p.bos@esciencecenter.nl
6
*
7
* Copyright (c) 2021, CERN
8
*
9
* Redistribution and use in source and binary forms,
10
* with or without modification, are permitted according to the terms
11
* listed in LICENSE (http://roofit.sourceforge.net/license.txt)
12
*/
13
14
#ifndef SERIALIZE_UTILITY_H
15
#define SERIALIZE_UTILITY_H 1
16
17
#include <type_traits>
18
19
namespace
ZMQ
{
20
namespace
Detail
{
21
22
template
<
class
T>
23
using
simple_object
= std::is_trivially_copyable<T>;
24
25
// is trivial
26
template
<
class
T>
27
struct
is_trivial
28
: std::conditional<simple_object<typename std::decay<T>::type>::value, std::true_type, std::false_type>::type {
29
};
30
31
}
// namespace Detail
32
}
// namespace ZMQ
33
34
#endif
// SERIALIZE_UTILITY_H
ZMQ::Detail
Definition
Utility.h:20
ZMQ::Detail::simple_object
std::is_trivially_copyable< T > simple_object
Definition
Utility.h:23
ZMQ
Definition
functions.h:19
ZMQ::Detail::is_trivial
Definition
Utility.h:28
roofit
roofitZMQ
res
RooFit_ZMQ
Utility.h
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1