MatN work for versatile appimage creation for all types of os
[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 }