projects
/
goodguy
/
cinelerra.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Credit Andrew with correction format and more silencing
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
tools
/
makeappimagetool
/
includes
/
assert.h
1
#pragma once
2
3
// system headers
4
#include <stdexcept>
5
6
namespace linuxdeploy {
7
namespace util {
8
namespace assert {
9
template<typename T>
10
void assert_not_empty(T container) {
11
if (container.empty()) {
12
throw std::invalid_argument{"container must not be empty"};
13
}
14
}
15
}
16
}
17
}