WarpX
Toggle main menu visibility
Loading...
Searching...
No Matches
Tools
QedTablesUtils
Source
QedTableCommons.H
Go to the documentation of this file.
1
#ifndef QED_TABLES_COMMONS_
2
#define QED_TABLES_COMMONS_
3
4
#include <iostream>
5
#include <string>
6
7
template
<
typename
ContainerType,
typename
ElementType>
8
bool
Contains
(
const
ContainerType& container,
const
ElementType& el)
9
{
10
return
container.find(el) != std::end(container);
11
}
12
13
void
AbortWithMessage
(
const
std::string& msg)
14
{
15
std::cerr <<
"### ABORT : "
<< msg <<
"\n"
;
16
std::cerr <<
"___________________________\n"
;
17
exit(1);
18
}
19
20
void
SuccessExit
()
21
{
22
std::cout <<
"___________________________\n"
;
23
exit(0);
24
}
25
26
#endif
//QED_TABLES_COMMONS_
AbortWithMessage
void AbortWithMessage(const std::string &msg)
Definition
QedTableCommons.H:13
Contains
bool Contains(const ContainerType &container, const ElementType &el)
Definition
QedTableCommons.H:8
SuccessExit
void SuccessExit()
Definition
QedTableCommons.H:20
Generated by
1.17.0