projects
/
goodguy
/
cinelerra.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
e92b7ed88582d80e7ca5a45f3b52253dd3b62354
[goodguy/cinelerra.git]
/
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
}